Schema validation failed with the following errors: Data path “.builders['app-shell']” should have required property 'class'

前端 未结 17 1009
无人共我
无人共我 2021-01-31 01:10
Schema validation failed with the following errors:
  Data path \".builders[\'app-shell\']\" should have required property \'class\'.

Schema validation failed with the          


        
相关标签:
17条回答
  • 2021-01-31 01:23

    This worked for me.

    npm uninstall @angular-devkit/build-angular
    
    npm install @angular-devkit/build-angular@0.13.0
    
    0 讨论(0)
  • 2021-01-31 01:23

    This will do the trick for you:

    1. Update your angular cli by running the command ng update @angular/cli @angular/core
    2. Run or build your project by running the commands ng s or ng build respectively.
    0 讨论(0)
  • 2021-01-31 01:23

    This worked for me:

    In package.json

    Changed "@angular-devkit/build-angular": "^0.800.0" --> "@angular-devkit/build-angular": "^0.10.0" Then:

     npm install
     ng serve
    

    Specs:

    Angular CLI: 6.1.5 Node: 10.15.3 OS: win32 x64 Angular: 6.1.9

    0 讨论(0)
  • 2021-01-31 01:25
    1. open cmd from current project
    2. npm uninstall @angular-devkit/build-angular
    3. npm install --save-dev @angular-devkit/build-angular
    0 讨论(0)
  • 2021-01-31 01:26
    1. Opened package.json
    2. Changed "@angular-devkit/build-angular": "^0.800.0" to "@angular-devkit/build-angular": "^0.10.0" or changed Changing from "@angular-devkit/build-angular": "^0.802.1" to "@angular-devkit/build-angular": "^0.13.9"
    3. Run npm install
    4. Run ng serve

    The original version can be diferent, but is necessary change it at 0.10.0 or 0.13.9 version that fix the problem

    0 讨论(0)
  • 2021-01-31 01:28

    Try to update @angular/core using ng update @angular/cli @angular/core

    0 讨论(0)
提交回复
热议问题