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

前端 未结 4 457
隐瞒了意图╮
隐瞒了意图╮ 2020-12-10 10:15

affter I update the ionic4 to ionic5 and try to run the ionic app the server is broken and show me this Error :

[ng] Schema validation failed with the

相关标签:
4条回答
  • 2020-12-10 10:47

    Everyone is focusing on downgrading @angular-devkit/build-angular version to X, or upgrading @angular/cli version to Y or latest.

    However, please do not blindly try switching X or Y or latest. (Though usually, downgrading devkit should be better because upgrading CLI is a breaking change)

    The correct version to choose always depends on your Angular (angular-cli) version. I've listed a few versions here.

    Angular CLI v8.3.19 -> 0.803.19
    Angular CLI v8.3.17 -> 0.803.17
    Angular CLI v7.3.8 -> 0.13.8
    Angular CLI v6-lts -> 0.8.9
    

    For other specific versions, visit: https://github.com/angular/angular-cli/tags. It might take some digging but once you locate your CLI version, in some tags they do mention the corresponding versions for @angular-devkit/** packages.

    Note: If you want to upgrade your CLI version, you should first consider upgrading to latest of your major version, do not simply jump to the next major version. *Answer used from zhuhang.jasper

    0 讨论(0)
  • 2020-12-10 10:52

    This worked for me as well,

    1. npm uninstall @angular-devkit/build-angular
    2. npm install @angular-devkit/build-angular@0.12.4
    0 讨论(0)
  • 2020-12-10 11:04

    Angular Cli 8 support Node Js 10.9+. I have Node.js 8, after update to 10.16 works fine.

    0 讨论(0)
  • 2020-12-10 11:06

    From the above comment session @tkerwood provide solution for this.

    Updated package.json from "@angular-devkit/build-angular": "^0.800.1" to "~0.13.9"

    run npm install

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