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

[apollo] Cannot find module 'webpack-node-externals' #31

Closed
travis-r6s opened this issue Apr 24, 2019 · 2 comments
Closed

[apollo] Cannot find module 'webpack-node-externals' #31

travis-r6s opened this issue Apr 24, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@travis-r6s
Copy link

Error while initializing nuxt: { /var/task/node_modules/@nuxtjs/apollo/lib/module.js:1
Error: Cannot find module 'webpack-node-externals'
Require stack:
- /var/task/node_modules/@nuxtjs/apollo/lib/module.js
- /var/task/node_modules/@nuxt/core/dist/core.js
- /var/task/now__launcher.js
- /var/runtime/node_modules/awslambda/index.js
    at Proxy.<anonymous> (/var/task/node_modules/@sentry/node/dist/integrations/console.js:41:47)
    at Object.<anonymous> (/var/task/node_modules/@nuxtjs/apollo/lib/module.js:2:23)
  code: 'MODULE_NOT_FOUND',
  requireStack: 
   [ '/var/task/node_modules/@nuxtjs/apollo/lib/module.js',
     '/var/task/node_modules/@nuxt/core/dist/core.js',
     '/var/task/now__launcher.js',
     '/var/runtime/node_modules/awslambda/index.js' ] }
@travis-r6s
Copy link
Author

Ah, simple fix - require('webpack-node-externals') in nuxt.config.js.

Not sure that this should happen though?

@pi0 pi0 added the question Further information is requested label May 8, 2019
@pi0
Copy link
Member

pi0 commented May 8, 2019

@thetre97 It seems apollo implicitly depends on webpack-node-externals (It should be in it's `dependencies).

/cc @dohomi.

@pi0 pi0 added bug Something isn't working and removed question Further information is requested labels May 8, 2019
@pi0 pi0 closed this as completed May 8, 2019
@pi0 pi0 changed the title Cannot find module 'webpack-node-externals' [apollo] Cannot find module 'webpack-node-externals' May 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants