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.

After Angular V13 upgrade to Angular V14 the compilation fails.

See original GitHub issue

Describe 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

test

image

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:closed
  • Created a year ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
just-jebcommented, Jul 25, 2022

Please try regenerating package-lock.json (remove and run npm install).

0reactions
polhekcommented, Nov 11, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

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