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

error in plugin or enviorment #64

Closed
pulkitnandan opened this issue Apr 1, 2017 · 3 comments
Closed

error in plugin or enviorment #64

pulkitnandan opened this issue Apr 1, 2017 · 3 comments

Comments

@pulkitnandan
Copy link

Hi,

I'm getting following error while trying to integrate swpreacache plugin.

ERROR in .//sw-precache-webpack-plugin/lib/index.js
Module not found: Error: Can't resolve 'fs' in '/home/rohitn/dbs/node_modules/sw-precache-webpack-plugin/lib'
@ ./
/sw-precache-webpack-plugin/lib/index.js 27:10-23
@ ./nuxt.config.js
@ ./plugins/axios.js
@ .//babel-loader/lib?{"presets":["vue-app"],"cacheDirectory":false}!.//vue-loader/lib/selector.js?type=script&index=0!./pages/index.vue
@ ./pages/index.vue
@ ./.nuxt/router.js
@ ./.nuxt/index.js
@ ./.nuxt/client.js

Any idea what such error mean?

@goldhand
Copy link
Owner

goldhand commented Apr 1, 2017

why are parts crossed out?

Looks like an issue with fs not being resolved. It's a core nodejs module so I'm not sure why it's not being resolved.

@goldhand
Copy link
Owner

goldhand commented Apr 1, 2017

If thats's the issue, it might be resolved when #63 is merged. It removes the fs dependency

@goldhand
Copy link
Owner

try:

"browser": { "fs": false }

or see: pugjs/pug-loader#8 (comment)

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