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

前端 未结 4 481
隐瞒了意图╮
隐瞒了意图╮ 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

提交回复
热议问题