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

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

    You have incompatibly dependencies i solved this problem by change the package.json form another project angular and then after change to this packag.json, you change only the dependencies versions you have.

    after the change write:

    -npm link

    -npm serve -o

    then it's work :)

       {
       "name": "angular-jwt-auth",
       "version": "0.0.0",
       "scripts": {
       "ng": "ng",
       "start": "ng serve",
       "build": "ng build",
       "test": "ng test",
       "lint": "ng lint",
       "e2e": "ng e2e"
       },
       "private": true,
       "dependencies": {
       "@angular/animations": "^7.1.4",
       "@angular/cdk": "^7.3.1",
       "@angular/common": "~7.1.0",
       "@angular/compiler": "~7.1.0",
       "@angular/core": "~7.1.0",
       "@angular/forms": "~7.1.0",
       "@angular/http": "^6.1.10",
       "@angular/material": "^7.3.1",
       "@angular/platform-browser": "~7.1.0",
       "@angular/platform-browser-dynamic": "~7.1.0",
       "@angular/router": "~7.1.0",
       "@ng-bootstrap/ng-bootstrap": "^4.2.0",
       "@types/jquery": "^3.3.29",
       "angular-6-datatable": "^0.8.0",
       "bootstrap": "^4.3.1",
       "chart.js": "^2.8.0",
       "core-js": "^2.5.4",
       "jquery": "^3.4.1",
       "rxjs": "~6.3.3",
       "zone.js": "~0.8.26"
        },
       "devDependencies": {
       "@angular-devkit/build-angular": "~0.11.0",
       "@angular/cli": "~7.1.0",
       "@angular/compiler-cli": "~7.1.0",
       "@angular/language-service": "~7.1.0",
       "@types/chart.js": "^2.7.53",
       "@types/jasmine": "^2.8.16",
       "@types/jasminewd2": "^2.0.6",
       "@types/node": "~8.9.4",
       "codelyzer": "~4.2.1",
       "jasmine-core": "~2.99.1",
       "jasmine-spec-reporter": "~4.2.1",
       "karma": "~3.1.1",
       "karma-chrome-launcher": "~2.2.0",
       "karma-coverage-istanbul-reporter": "~2.0.1",
       "karma-jasmine": "~1.1.2",
       "karma-jasmine-html-reporter": "^0.2.2",
       "protractor": "~5.4.0",
       "ts-node": "~7.0.0",
       "tslint": "~5.11.0",
       "typescript": "~3.1.6"
       }
    

提交回复
热议问题