An unhandled exception occurred: Cannot read property ‘Minus’ of undefined

Published

i uninstall and install the npm using the command

npm intall

and getting error after this
i also tried

npm audit fix --force

after that the error come
An unhandled exception occurred: Cannot read property ‘Minus’ of undefined
See "/private/var/folders/8n/6vsx9lx93lx9wrgxm1q_yv4c0000gn/T/ng-pMlA9a/angular-errors.log" for further details.
npm ERR! Test failed. See above for more details.

Source: AngularJS Questions

Published
Categorized as angularjs, node.js Tagged ,

Answers

same here


meimei

To fix this, i had to update @angular/compiler-cli from 10.0.2 to 10.1.1


Nihanth Mutluru

Try updating to latest versions of all the dependencies in package.json. I faced the same issue and spent 2 weeks finding the right solution. Do “ng update” and it will work.


Nikita Srivastava

still not working


Mohini

i tried the downgrade to 10.1.1, and ng update but still not working 🙁


ben

I’m no expert but this worked for me

npm i [email protected]
npm i @angular/[email protected]
npm i @angular/[email protected]

check versions in place inside project using ng version

Now I can run ionic serve without errors


facing the same problem, with the lastes @Angular/[email protected]


got same error. it’s bug in new version of @angular/compiler-cli
fixed by downgrade version to “10.0.12”

UPD. checked on new version “@angular/compiler”: “~10.1.1” – works fine


Carleton Spencer

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq