You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot find module 'webpack' after moving from @latest to @next #11148
I was in cli 6 and want try ng update --next --all it cancel me cause of peer dependances ng update --next --all --force success but get me last version of typescrip, I need manually in package.json write ~2.7.2 then npm install
After that I run ng serve and I get :
Cannot find module 'webpack'
Error: Cannot find module 'webpack'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:594:15)
at Function.Module._load (internal/modules/cjs/loader.js:520:25)
at Module.require (internal/modules/cjs/loader.js:650:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (C:\Users\...\node_modules\@angular-devkit\build-webpack\src\webpack\index.js:6:17)
at Module._compile (internal/modules/cjs/loader.js:702:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
at Module.load (internal/modules/cjs/loader.js:612:32)
at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
at Function.Module._load (internal/modules/cjs/loader.js:543:3)
Then I remove node_modules manually then rerun npm install -> same error output.
Desired functionality
First of all avoid always update typescript to last version keep only supported version. Then I desire to update easily.
Mention any other details that might be useful
Actually I can't quit this @next and come back to @latest I need fix my package.json manually. Damn!
Activity
filipesilva commentedon Jun 7, 2018
I think that was some badly configured peer dependencies on our side. #11152 should fix it.
filipesilva commentedon Jun 7, 2018
Getting you the latest TypeScript was fixed by angular/devkit#987
filipesilva commentedon Jul 6, 2018
I think everything here is now fixed.
Seh83 commentedon Nov 13, 2018
Try this...
npm uninstall --save webpack
npm install --save-dev webpack
gtzinos commentedon Nov 20, 2018
don't try it, we don't have to install webpack it will break if you will execute
rm -rf node_modules
npm install
ng serve
angular-automatic-lock-bot commentedon Sep 8, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.