"constructorParametersDownlevelTransform is not a function" in Angular

Angular Cli

Angular Cli Problem Overview


I had to run an "npm audit fix" on my project and from there after all "ng serve", I get the following error:

ERROR in TypeError: tooling_1.constructorParametersDownlevelTransform is not a function

Has anyone ever experienced this?

Thank you!

SOLUTION:

npm install @angular-devkit/build-angular@0.901.9

Angular Cli Solutions


Solution 1 - Angular Cli

I just got same error. If you are using Angular 9 in your app check version of @angular-devkit/build-angular. I had version 0.1000.0 which I assume is intended for Angular v10. Probably got there by running ncu I just downgraded on 0.9xxx.x and this error message is not showing anymore.

To fix this issue just downgrade angular-devkit/build-angular:

npm install @angular-devkit/build-angular@0.901.9
Categories

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionRené GustavoView Question on Stackoverflow
Solution 1 - Angular CliA. DavidView Answer on Stackoverflow