After Angular V13 upgrade to Angular V14 the compilation fails.
See original GitHub issueDescribe the Bug
I have updated my Angular v13 app to Angular v14. When updating the NPM packages I didn’t get any errors. I have also updated the "@angular-builders/custom-webpack": "^14.0.0"
. When running ng serve
I get errors, which were not present before.
Minimal Reproduction
I am sorry, but I cannot share the app minimal reproduction.
Expected Behavior
The compilations of the Angular app should finish as expected.
Screenshots
I get the following errors when compiling my Angular app. Before updating to v14 and updating to `“@angular-builders/custom-webpack”: “^14.0.0”`` it worked flawlessly.
Environment
Libs
- "@angular/core": "^14.1.0",
- "@angular-devkit/build-angular": "^14.1.0",
- `"@angular-builders/custom-webpack": "^14.0.0"``.
For Tooling issues:
- Node version: 16.16.0
- Platform: Windows
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Build fails after migrating from v13 to v14 #23490 - GitHub
Build fails after migrating from v13 to v14 #23490 ... Error: Emit Error: Failed to initialize Angular compilation - NGCC failed.
Read more >Cannot update a project from Angular 13 to 14 - Stack Overflow
I have two suggestions: Suggestion 1: First upgrade the @angular-eslint/schematics package. ng update @angular-eslint/schematics@14.
Read more >Update Angular to v15
Information about updating Angular applications to v14 is archived at Update to version 14. ... In v15, this is reported as a compilation...
Read more >Update Angular to v14
This guide contains information to update to Angular version 14. Update Angular CLI applicationslink. For step-by-step instructions on how to update to the ......
Read more >Angular v14 is now available!
We are excited to announce the release of Angular v14! From typed forms and standalone components to new primitives in the Angular CDK ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Please try regenerating
package-lock.json
(remove and runnpm install
).We figured out that with Angular 14 we had to import every .scss of angularJS to angular.json. It wasn’t error on the package site.
Sorry for the inconveniences.