【发布时间】:2018-09-10 20:04:53
【问题描述】:
我刚刚创建了一个名为“phoneBook”的新项目,当我尝试执行ng add @angular/pwa 命令时,我得到了几秒钟的安装时间,然后出现了一个毫无意义的错误。
错误:
Schema 输入未针对 Schema 进行验证:{"target":"build","configuration":"production","project":"phoneBook","title":"phoneBook"} 错误: 数据路径“”不应有其他属性(标题)。
我查看了 Angular@Cli 问题,但没有找到与此错误匹配的任何内容。我今天刚刚将我的 Angular cli 更新到了最新版本。
ng -v
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 6.1.2
Node: 8.9.3
OS: win32 x64
Angular: 6.1.0
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.7.0
@angular-devkit/build-angular 0.7.0
@angular-devkit/build-optimizer 0.7.0
@angular-devkit/build-webpack 0.7.0
@angular-devkit/core 0.7.0
@angular-devkit/schematics 0.7.2
@angular/cli 6.1.2
@angular/pwa 0.6.8
@ngtools/webpack 6.1.0
@schematics/angular 0.7.2
@schematics/update 0.7.2
rxjs 6.3.2
typescript 2.7.2
webpack 4.9.2
【问题讨论】:
标签: angular angular-cli