当我在Angular项目上运行Nx Cloud的make-angular-cli-faster
时,出现以下错误:
"该原理图只能与单个项目的 Angular CLI 工作区一起使用。">
这是堆栈跟踪的开始:
Error: Command failed: nx g @nrwl/workspace:ng-add --preserveAngularCLILayout
at checkExecSyncError (child_process.js:621:11)
at Object.execSync (child_process.js:657:15)
at C:Users....
我使用的是 Angular 版本 9.0.2 和 AngularCLI 版本 9.0.3。
有谁知道解决这个问题的方法?谢谢!
不幸的是,目前这仅支持一个项目的 Angular CLI 工作区。但多项目支持已在路线图上。
这可以在 angular.json 中配置。我在项目块中配置了端到端测试,我需要删除这些测试才能使其正常工作:
"projects": {
"foo": {
//...
},
"foo-e2e": { <-- needed to remove this
//...
}
}