angular-builders icon indicating copy to clipboard operation
angular-builders copied to clipboard

After Angular V13 upgrade to Angular V14 the compilation fails.

Open polhek opened this issue 2 years ago • 4 comments

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

polhek avatar Jul 25 '22 13:07 polhek

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

just-jeb avatar Jul 25 '22 22:07 just-jeb

I have tried all this things, and have also found the solution. The .style.css file that you get errors for, you need to add to angular.json styles. And then the app compiles normally. Don't know why this wasn't the problem in angular 13, but has become a problem in version 14.

polhek avatar Jul 30 '22 06:07 polhek

I have the same problem.

YES-Lee avatar Aug 11 '22 16:08 YES-Lee

Try adding the files that the compiler tells you about to angular.json. This solved my problem. Maybe there is even better workaround.

polhek avatar Aug 11 '22 19:08 polhek

@polhek are you able to provide a reproducible example? Unfortunately, its lack makes the issue stale because no one can understand what's happening on your side just by looking at your screenshots.

(note: the reproducible example was required when you were opening an issue: Our policy is that issues reported without a reproduction will be closed immediately and then reopened once a reproduction has been provided. Please respect the developers of this project by doing this.)

arturovt avatar Nov 11 '22 20:11 arturovt

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.

polhek avatar Nov 11 '22 20:11 polhek