question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support Angular v10

See original GitHub issue

After migrating to Angular v10:

warning "@angular-builders/custom-webpack > @angular-devkit/build-angular@0.901.1" has incorrect peer dependency "@angular/compiler-cli@>=9.0.0 < 10".
warning "@angular-builders/custom-webpack > @angular-devkit/build-angular@0.901.1" has incorrect peer dependency "typescript@>=3.6 < 3.9".
warning "@angular-builders/custom-webpack > @angular-devkit/build-angular > @ngtools/webpack@9.1.1" has incorrect peer dependency "@angular/compiler-cli@>=9.0.0 < 10".
warning "@angular-builders/custom-webpack > @angular-devkit/build-angular > @ngtools/webpack@9.1.1" has incorrect peer dependency "typescript@>=3.6 < 3.9".

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:26 (5 by maintainers)

github_iconTop GitHub Comments

18reactions
danmanacommented, Jul 1, 2020

I had the same issue with Cannot find module webpack after upgrading. I didn’t want to run npm link webpack especially on the build server.

What I ended up doing (and worked) was:

npm uninstall --save-dev @angular-builders/custom-webpack
rm -rf package-lock.json
rm -rf node_modules
rm -rf dist # this seems to be important for some reason, I tried the same steps without this before and it didn't work ...
npm install
npm install --save-dev @angular-builders/custom-webpack@10.0.0-beta.0

I can’t say for sure this will work on the first try, as I did some of the steps multiple times, but eventually, it worked without npm link.

7reactions
piotrrodacommented, Jun 25, 2020

After update to 10.0.0-beta.0 I see an error:

An unhandled exception occurred: Cannot find module 'webpack'
Require stack:
- C:\SLS_EB\Claims\Angular\node_modules\webpack-dev-server\lib\Server.js
- C:\SLS_EB\Claims\Angular\node_modules\@angular-devkit\build-angular\node_modules\@angular-devkit\build-webpack\src\webpack-dev-server\index.js
- C:\SLS_EB\Claims\Angular\node_modules\@angular-devkit\build-angular\node_modules\@angular-devkit\build-webpack\src\index.js
- C:\SLS_EB\Claims\Angular\node_modules\@angular-devkit\build-angular\src\browser\index.js
- C:\SLS_EB\Claims\Angular\node_modules\@angular-devkit\build-angular\src\index.js
- C:\SLS_EB\Claims\Angular\node_modules\@angular-builders\custom-webpack\dist\browser\index.js
- C:\SLS_EB\Claims\Angular\node_modules\@angular\cli\node_modules\@angular-devkit\architect\node\node-modules-architect-host.js
- C:\SLS_EB\Claims\Angular\node_modules\@angular\cli\node_modules\@angular-devkit\architect\node\index.js
- C:\SLS_EB\Claims\Angular\node_modules\@angular\cli\models\architect-command.js
- C:\SLS_EB\Claims\Angular\node_modules\@angular\cli\commands\build-impl.js
- C:\SLS_EB\Claims\Angular\node_modules\@angular-devkit\schematics\tools\export-ref.js
- C:\SLS_EB\Claims\Angular\node_modules\@angular-devkit\schematics\tools\index.js
- C:\SLS_EB\Claims\Angular\node_modules\@angular\cli\utilities\json-schema.js
- C:\SLS_EB\Claims\Angular\node_modules\@angular\cli\models\command-runner.js
- C:\SLS_EB\Claims\Angular\node_modules\@angular\cli\lib\cli\index.js
- C:\SLS_EB\Claims\Angular\node_modules\@angular\cli\lib\init.js
- C:\SLS_EB\Claims\Angular\node_modules\@angular\cli\bin\ng
Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular versioning and releases
Actively supported versionslink. The following table provides the status for Angular versions under support. Version, Status, Released, Active ends, LTS ends ...
Read more >
Angular - endoflife.date
Release Released Active Support 15 1 month and 1 week ago. (16 Nov 2022) Ends in 4 months and 3 weeks. (18 M... 14 (...
Read more >
Angular v10 released! - This Dot Labs
In Angular v10, if the dependency is CommonJS packaged, ... And you can update the browsers support by updating the .browserslistrc file.
Read more >
640 Versions - @angular/cli - npm
CLI tool for Angular. Latest version: 15.0.4, last published: ... There are 433 other projects in the npm registry using @angular/cli. ... 24,802....
Read more >
Comparison Between Angular 11 vs Angular 12 vs Angular 13
Angular 11 Features · Updated Hot Module Replacement (HMR) Support · Updates on Operation Byelog · Automatic Inlining of Fonts · Component Test ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found