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

Cannot find module socket.io-client #796

Closed
Pranay92 opened this issue Jan 5, 2015 · 3 comments
Closed

Cannot find module socket.io-client #796

Pranay92 opened this issue Jan 5, 2015 · 3 comments

Comments

@Pranay92
Copy link

Pranay92 commented Jan 5, 2015

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 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.

@3rd-Eden
Copy link
Contributor

3rd-Eden commented Jan 5, 2015

I think you're confused. You mention bower.json and browserify in the same issue. Browserify doesn't use bower.json it uses package.json.

@Pranay92
Copy link
Author

Pranay92 commented Jan 5, 2015

I've just updated the description above. Thanks!

@nkzawa
Copy link
Contributor

nkzawa commented Jan 16, 2016

This should not be an issue anymore since we have the main entry now. Feel free to reopen.

@nkzawa nkzawa closed this as completed Jan 16, 2016
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

3 participants