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 seem to get socket.io integrated... #83

Closed
GQAdonis opened this issue Mar 27, 2015 · 1 comment
Closed

Cannot seem to get socket.io integrated... #83

GQAdonis opened this issue Mar 27, 2015 · 1 comment

Comments

@GQAdonis
Copy link

I cannot seem to get socket.io to work with this toolkit no matter what I do. I get compilation errors from simply using "npm install socket.io", which installs version 1.3.5, which conflicts with the version used by webpack.

However, once I revert to 0.9.7 of socket.io, the project will build and run until I actually attempt to "require('socket.io').listen(server)", which causes the following error:

, 'undefined' != typeof io ? io : module.parent.exports
^
TypeError: Cannot read property 'exports' of undefined

Has anyone successfully integrated socket.io with this project and gotten it to work?

@koistya
Copy link
Member

koistya commented Apr 5, 2015

Try to add a dot \. to the following regular expression:

https://github.com/kriasoft/react-starter-kit/blob/master/webpack.config.js#L126

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

2 participants