【发布时间】:2020-07-06 07:03:17
【问题描述】:
每当我输入 ng serve 时,它都会打印:
您的全局 Angular CLI 版本 (10.0.1) 高于本地版本 版本(6.2.9)。使用本地 Angular CLI 版本。
要禁用此警告,请使用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.project (d:\문현주\Desktop\Coursera Bootstrap\Angular\conFusion\node_modules\@angular-devkit\core\src\workspace\workspace.js:210:42)
at MergeMapSubscriber._tryNext (d:\문현주\Desktop\Coursera Bootstrap\Angular\conFusion\node_modules\rxjs\internal\operators\mergeMap.js:65:27)
at MergeMapSubscriber._next (d:\문현주\Desktop\Coursera Bootstrap\Angular\conFusion\node_modules\rxjs\internal\operators\mergeMap.js:55:18)
at MergeMapSubscriber.Subscriber.next (d:\문현주\Desktop\Coursera Bootstrap\Angular\conFusion\node_modules\rxjs\internal\Subscriber.js:64:18)
at MergeMapSubscriber.notifyNext (d:\문현주\Desktop\Coursera Bootstrap\Angular\conFusion\node_modules\rxjs\internal\operators\mergeMap.js:84:26)
at InnerSubscriber._next (d:\문현주\Desktop\Coursera Bootstrap\Angular\conFusion\node_modules\rxjs\internal\InnerSubscriber.js:25:21)
at InnerSubscriber.Subscriber.next (d:\문현주\Desktop\Coursera Bootstrap\Angular\conFusion\node_modules\rxjs\internal\Subscriber.js:64:18)
at MapSubscriber._next (d:\문현주\Desktop\Coursera Bootstrap\Angular\conFusion\node_modules\rxjs\internal\operators\map.js:52:26)
at MapSubscriber.Subscriber.next (d:\문현주\Desktop\Coursera Bootstrap\Angular\conFusion\node_modules\rxjs\internal\Subscriber.js:64:18)
at SwitchMapSubscriber.notifyNext (d:\문현주\Desktop\Coursera Bootstrap\Angular\conFusion\node_modules\rxjs\internal\operators\switchMap.js:77:26)
有人知道怎么解决吗?
【问题讨论】:
-
您需要帮助解决这两个问题中的哪一个?版本不匹配,还是所需的属性问题?
标签: angular