Errors: Data path “.builders['app-shell']” should have required property 'class'

前端 未结 20 1545
心在旅途
心在旅途 2020-11-30 19:27

I am getting this error while running my application. Here are the details of my application.

Angular CLI: 7.3.3 
Node: 10.15.1 
Angular: 7.2.7 
@angular-de         


        
20条回答
  •  臣服心动
    2020-11-30 20:00

    Everyone here is focusing on downgrading @angular-devkit/build-angular to @angular 7.x versions for compatibility, but what they should be doing is to upgrade @angular/cli to angular 8 versions.

    The problem is that the system cli is still stuck at an old version and isn't automatically updated by ng update (because it is outside the angular controlled project), so it is being left at an incompatible version when trying to access the angular libraries.

    Downgrading @angular-devkit/build-angular just causes more incompatibilities.

    npm i --global @angular/cli@latest
    

    will fix the problem without breaking things elsewhere.

提交回复
热议问题