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 find module 'webpack' #198

Closed
miladkc opened this issue Jun 30, 2018 · 4 comments
Closed

Cannot find module 'webpack' #198

miladkc opened this issue Jun 30, 2018 · 4 comments

Comments

@miladkc
Copy link

miladkc commented Jun 30, 2018

I have no idea about the things you asked me to provide, because I'm not using your module directly at all. I just have a routine angular application, and now I'm getting this error:

Cannot find module 'webpack'
Error: Cannot find module 'webpack'
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (C:\Taak\PixelearnWeb\school\node_modules\mini-css-extract-plugin\dist\index.js:15:16)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (C:\Taak\PixelearnWeb\school\node_modules\mini-css-extract-plugin\dist\cjs.js:3:18)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
@alexander-akait
Copy link
Member

alexander-akait commented Jul 2, 2018

@miladkc npm cache clean --force && rm -rf node_modules && npm i

@tvthatsme
Copy link

We have same issue, ci only.
solution didn't work for us.
mini-css-extract-plugin is a dep of next.js in our case.
"version": "0.8.0"

@alexander-akait
Copy link
Member

alexander-akait commented Feb 20, 2020

Please open a issue in next.js

@bingyang519
Copy link

Link globally installed package to your project
npm link webpack

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

4 participants