Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

An unhandled exception occurred: Cannot read property 'Minus' of undefined

I uninstall and install the NPM using the command

npm install

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.
like image 816
Shoaib Anwar Avatar asked Sep 06 '20 12:09

Shoaib Anwar


Video Answer


2 Answers

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

like image 124
Alex Skiffin Avatar answered Oct 17 '22 17:10

Alex Skiffin


I had to run the following command:

ng update @angular/cli @angular/core --allow-dirty --force

And then remove the line

"es5BrowserSupport": true

from the

angular.json

file.

like image 10
Andrew Avatar answered Oct 17 '22 17:10

Andrew