在我的 Angular 11 project我正在尝试 replace tslint with eslint但以下命令:
ng add @angular-eslint/schematics
给我这个错误:Error: Angular CLI v10.1.0 and later (and no
tsconfig.base.json
) is required in order to run this schematic. Please update your workspace and try again.
为什么我的 Angular CLI 版本已经高于
10.1.0
但我还有 tsconfig.base.json
文件以及如何修复它?
最佳答案
我已经通过运行解决了这个问题
ng update @angular/cli --migrate-only --from 9 --to 10
这将正确删除 tsconfig.base.json
文件并允许我继续迁移。
关于angular - 错误 : Angular CLI v10. 1.0 及更高版本(没有 `tsconfig.base.json` ),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67569924/