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 "fs" #662
Comments
I honestly don't know why you are getting this error but it's in no way related to |
Only happens when I use this library though - hence the reason for the issue. I'll continue to investigate elsewhere :) |
@joedawson Experiencing the same issue here, have you the found the reason? |
@hrmoller unfortunately ended up abandoning the library and using navtive WebSockets in the end. Bit of a shame, but I think it was related to my webpack config somehow if that helps point you in the right direction? |
Before this one there's another error:
So the issue is related to the fact that Webpack cannot require |
The problem doesn't appear in
|
Incompatibility with webpack should be in README. |
Similar error is webpack/react-starter#3 (comment) When developing isomorphic javascript app, the packages we "tinycolor": "0.0.x",
"utf-8-validate": "1.2.x"
},
+ "browser": {
+ "fs": false,
+ "tls": false
+ },
"gypfile": true
} Otherwise, we could add this to loaders: ['style', 'raw']
}
]
+ },
+ node: {
+ fs: 'empty',
+ tls: 'empty'
}
}; |
I'm new to ws,and I just got the same problem today.
So, we should just remove |
Hello,
Firstly, I'm sorry if this isn't an issue related to the ws library - but I had to start somewhere.
I'm currently working on a project with Vue.js - my current code looks like this.
When the
connect
method is called, I get the following error in my console.Do you have any idea why I might be receiving this? I know everything but the code within my
connect
method is ok as I've tested this.I hope you can help!
The text was updated successfully, but these errors were encountered: