我正在转换库( ng-app-state )以使用 angular cli,现在是 v6 supports libraries (好极了!)。
当尝试运行某些 CLI 命令时,它会失败并显示如下错误:
$ ng test --source-map ng-app-state
Architect commands with multiple targets cannot specify overrides.'test' would be run on the following projects: ng-app-state-monorepo,ng-app-state
Error: Architect commands with multiple targets cannot specify overrides.'test' would be run on the following projects: ng-app-state-monorepo,ng-app-state
at TestCommand.validate (S:\Programming\git repositories\ng-app-state-monorepo\node_modules\@angular\cli\models\architect-command.js:91:23)
最佳答案
您需要先输入库名称,然后才是选项。例如。
# do this
$ ng test ng-app-state --watch=true --source-map
# don't do this
$ ng test --watch=true --source-map ng-app-state
关于angular-cli - 具有多个目标的 Architect 命令无法指定覆盖,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50189932/