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 resolve module errors #89

Closed
hackingbeauty opened this issue Mar 30, 2016 · 1 comment
Closed

Cannot resolve module errors #89

hackingbeauty opened this issue Mar 30, 2016 · 1 comment

Comments

@hackingbeauty
Copy link

I just installed an npm module that makes network calls in my component that I scaffolded with nwb.

It appears as if webpack is having a problem with this type of npm module, since I'm receiving the following errors:

Module not found: Error: Cannot resolve module 'fs'
Module not found: Error: Cannot resolve module 'net'
Module not found: Error: Cannot resolve module 'tls' 

I tried importing another module (Youtube-node) that has similar functionality, and am experiencing the same problem.

Is this a known issue? Thanks!

@hackingbeauty
Copy link
Author

Hey, I believe this issue is a false alarm. The npm module I was requiring makes use of the 'net' and 'tls' npm modules which I believe comes by default with Node.

However, when building front-end npm components, you need to require these modules manually.

Sorry about that.

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