Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

posenetSocket.exe: Cannot find module 'default/dist/socket.js' #15

Open
simonsergepasi opened this issue Jun 28, 2019 · 4 comments
Open

Comments

@simonsergepasi
Copy link

I get this error when I run posenetSocket.exe:

module.js:491
    throw err;
    ^

Error: Cannot find module 'default/dist/socket.js'
    at Function.Module._resolveFilename (module.js:489:15)
    at Function.Module._load (module.js:439:25)
    at Module.require (module.js:517:17)
    at require (internal/module.js:11:18)

Indeed there is no "socket.js" in posenet-for-installations-master/server/dist/
Though everything works great when I do "yarn start-server"

@zugende
Copy link

zugende commented Aug 6, 2019

get the same error
@simserg did you solve the problem my putting socket.js back into the folder?

@simonsergepasi
Copy link
Author

simonsergepasi commented Aug 6, 2019

@zugende I couldn't solve the problem.
There was another socket.js file in the project so I tried copying it into /server/dist, but I got the same error. I also copied the socket.js file into a new directory at /server/default/dist/, but still got the error. I also tried moving /default/dist/socket.js around in the /server/directory/, but alas the error remains.
I don't really know where it is trying to look for socket.js.

@hulsmeier
Copy link

hulsmeier commented Sep 10, 2019

Was anyone able to figure out this issue?

Edit:
I placed socket.js in server/dist. Now it doesn't show any errors, but nothing happens. I have to run "yarn start" in the server folder manually. Other than this everything is working.

@PrecociouslyDigital
Copy link

The error stems from client/distribute.js having an incorrect entrypoint; I've submitted a pull request here: #29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants