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

webpack error: cannot resolve module fs #17

Open
thebetterjort opened this issue Oct 28, 2016 · 1 comment
Open

webpack error: cannot resolve module fs #17

thebetterjort opened this issue Oct 28, 2016 · 1 comment

Comments

@thebetterjort
Copy link

Trying to use the index.js or webpack yells at me if i use the mini version. When I use the index.js it says this.

ERROR in .//create-torrent/index.js
Module not found: Error: Cannot resolve module 'fs' in /home/charliebrown/internalDocs/node_modules/create-torrent
@ ./
/create-torrent/index.js 22:9-22

ERROR in .//parse-torrent/index.js
Module not found: Error: Cannot resolve module 'fs' in /home/charliebrown/internalDocs/node_modules/parse-torrent
@ ./
/parse-torrent/index.js 7:9-22

ERROR in .//webtorrent/lib/torrent.js
Module not found: Error: Cannot resolve module 'fs' in /home/charliebrown/internalDocs/node_modules/webtorrent/lib
@ ./
/webtorrent/lib/torrent.js 13:9-22

ERROR in .//is-file/index.js
Module not found: Error: Cannot resolve module 'fs' in /home/charliebrown/internalDocs/node_modules/is-file
@ ./
/is-file/index.js 3:9-22

ERROR in .//pump/index.js
Module not found: Error: Cannot resolve module 'fs' in /home/charliebrown/internalDocs/node_modules/pump
@ ./
/pump/index.js 3:9-22

@deckar01
Copy link

How exactly are you trying to use index.js? What do you mean by "webpack yells at me if i use the mini version"?

browserify is used to bundle the node modules into a script for the browser.

You can run npm run build-debug if you want to build an unminified version. See https://github.com/guerrerocarlos/CacheP2P/blob/master/package.json#L64

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