You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're using socket.io-client via browserify and we're getting the following error
cannot find module socket-io-client
when using
require('socket.io-client)
I'm assuming this is because we don't have the main entry in the package.json file. I created a fork of the project and changed the filename to socket.io-client.js and created a new release to be able to use it in our project which ultimately resolved the issue.
Is this valid or if something I'm doing wrong? Thanks in advance.
The text was updated successfully, but these errors were encountered:
Hi,
Version 1.2.1
We're using socket.io-client via browserify and we're getting the following error
cannot find module socket-io-client
when using
require('socket.io-client)
I'm assuming this is because we don't have the
main
entry in thepackage.json
file. I created a fork of the project and changed the filename tosocket.io-client.js
and created a new release to be able to use it in our project which ultimately resolved the issue.Is this valid or if something I'm doing wrong? Thanks in advance.
The text was updated successfully, but these errors were encountered: