Reputation: 61744
In my Angular 11 project I'm trying to replace tslint with eslint but the following command:
ng add @angular-eslint/schematics
gives me this error:
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.
how come my Angular CLI version is already higher than 10.1.0
but I still have the tsconfig.base.json
file and how to fix it?
Upvotes: 10
Views: 5530
Reputation: 8443
In my case, interestingly, the Angular is already updated to version 10, but tsconfig.base.json
still exists in the folder, so I deleted the file manually and re-run again ng add @angular-eslint/schematics
. This solution works 🎉.
Upvotes: 2
Reputation: 61744
I've solved the issue by running
ng update @angular/cli --migrate-only --from 9 --to 10
this will correctly remove the tsconfig.base.json
file and allows me to proceed with the migration.
Upvotes: 8