我刚刚创建了一个名为“ phoneBook”的新项目,当我尝试执行ng add @angular/pwa
命令时,我得到了几秒钟的安装时间,然后出现了一个毫无意义的错误。
错误:
示意图输入未针对以下架构进行验证:{“ target”:“ build”,“ configuration”:“生产”,“ 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
答案 0 :(得分:0)