Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"constructorParametersDownlevelTransform is not a function" in Angular

Tags:

angular-cli

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/[email protected] 
like image 598
René Gustavo Avatar asked Jun 26 '20 01:06

René Gustavo


1 Answers

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/[email protected] 
like image 113
A. David Avatar answered Oct 29 '22 12:10

A. David