-
-
Notifications
You must be signed in to change notification settings - Fork 541
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
Socket.io server - require.resolve() #289
Comments
I Edit the file At the top:
Then replace the problematic code with :
|
Closing as I just submitted a PR to socket.io project. |
I'm using What exactly should I config to get this to work? |
Huh, weird. The call to |
I have been going trough all issues so far, and googling a bit.
In Socket.io source code, they use require.resolve, which is not supported by browserify.
So I excluded 'socket.io' from
nexe.browserify.excludes
in thepackage.json
file.I tried to create a
node_modules
folder inside the generated bin folder, with no luck. "Can;t find native module" it says. The problem is thatsocket.io
is not a native module anymore, just plain JS files.Is there a way to include unsupported files alongside the generated bin? is the solution to list every single file required by socket.io inside the
requiredFiles
array ?I will now try to replace
require.resolve
by something else and see if that fixes it. I'll keep you updated with this.The text was updated successfully, but these errors were encountered: