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

前端 未结 20 1560
心在旅途
心在旅途 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:17

    I also faced this issue and struggled hours to solve it, I have tried all of the above options but nothing solved my problem. This issue occurs due to version mismatch of angular/cli and angular-devkit, so I did the following :

    1. Manually changed version of files:

      @angular-devkit/build-angular": "^0.13.9",

      @angular/cli": "~7.0.3", //This is for Angular7, for Angular8 : 0.803.23

    2. Deleted package-lock.json

    3. Executed : npm install

    It solved my problem.

提交回复
热议问题