【问题标题】:Schema validation failed with the following errors @angular-devkit架构验证失败,出现以下错误@angular-devkit
【发布时间】:2019-07-04 22:00:43
【问题描述】:

启动 NgServe 时出现以下错误。 我已经多次清除缓存并更新了 NPM。 在安装 NPM 时我没有遇到任何问题。 使用 Angular NGServe 命令我无法继续。 请帮助进一步进行,如果需要任何进一步的细节,请告诉我。

ng serve
Your global Angular CLI version (7.3.9) is greater than your local
version (7.1.4). The local Angular CLI version is used.

To disable this warning use "ng config -g cli.warnings.versionMismatch false".
Schema validation failed with the following errors:
  Data path ".builders['app-shell']" should have required property 'class'.
Error: Schema validation failed with the following errors:
  Data path ".builders['app-shell']" should have required property 'class'.
    at MergeMapSubscriber._registry.compile.pipe.operators_1.concatMap.validatorResult [as project] 
    (C:\workspace\web\space\POC\app-ui\node_modules\@angular\cli\node_modules\@angular-devkit\core\src\workspace\workspace.js:215:42)
    at MergeMapSubscriber._tryNext (C:\workspace\web\space\POC\app-ui\node_modules\rxjs\internal\operators\mergeMap.js:69:27)
    at MergeMapSubscriber._next (C:\workspace\web\space\POC\app-ui\node_modules\rxjs\internal\operators\mergeMap.js:59:18)
    at MergeMapSubscriber.Subscriber.next (C:\workspace\web\space\POC\app-ui\node_modules\rxjs\internal\Subscriber.js:67:18)
    at MergeMapSubscriber.notifyNext (C:\workspace\web\space\POC\app-ui\node_modules\rxjs\internal\operators\mergeMap.js:92:26)
    at InnerSubscriber._next (C:\workspace\web\space\POC\app-ui\node_modules\rxjs\internal\InnerSubscriber.js:28:21)
    at InnerSubscriber.Subscriber.next (C:\workspace\web\space\POC\app-ui\node_modules\rxjs\internal\Subscriber.js:67:18)
    at MapSubscriber._next (C:\workspace\web\space\POC\app-ui\node_modules\rxjs\internal\operators\map.js:55:26)
    at MapSubscriber.Subscriber.next (C:\workspace\web\space\POC\app-ui\node_modules\rxjs\internal\Subscriber.js:67:18)
    at SwitchMapSubscriber.notifyNext (C:\workspace\web\space\POC\app-ui\node_modules\rxjs\internal\operators\switchMap.js:86:26)

【问题讨论】:

标签: angular


【解决方案1】:

ng 更新 @angular/cli @angular/core 试试这个

【讨论】:

    猜你喜欢
    • 2019-10-15
    • 1970-01-01
    • 1970-01-01
    • 2021-11-05
    • 2021-08-22
    • 1970-01-01
    • 1970-01-01
    • 2019-02-23
    • 2022-09-30
    相关资源
    最近更新 更多