Angular 9 - NGCC fails with an unhandled exception

后端 未结 16 1678
离开以前
离开以前 2020-12-24 05:40

Buidling the application after having upgraded dependcies to Angular 9 (and having performed necessary code changes) throws an error:

Compiling @ang

16条回答
  •  悲&欢浪女
    2020-12-24 06:20

    Well in my case I was trying to run an angular project of an older version with a newer version of node. I did this:

    Removes all the existing nodule modules.

    rm -rf node_modules
    

    update node js to latest

    npm update
    npm install
    

    updates the angular project version to the latest

    ng update @angular/core
    

    updates the project cli to the latest

    ng update @angular/cli
    

    Now start the project

    ng-serve
    

提交回复
热议问题