angular - 错误 : Angular CLI v10. 1.0 及更高版本(没有 `tsconfig.base.json` )

标签 angular typescript angular-cli eslint tslint

在我的 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/

相关文章:

javascript - 无法给予按钮元素焦点

typescript - 如何使用 "path tuple"从嵌套属性中检索类型

javascript - 如何添加外部 CSS 文件 - styleUrls - Angular 5 组件

angular-cli - Angular CLI 6 - ng build 不生成服务器包

angular - 在两个构建中拆分 Angular CLI 应用程序

angular - Windows cmd 在 ngserve --o 命令后关闭

angular - 在预检请求中发送自定义 header OPTIONS angular 5

angular - 带有 webpack 的动态基础 href 链接

javascript - TypeScript - 对象不支持属性或方法 'defineProperty'

typescript - 如何使用 Webpack、TypeScript 和 Sequelize