Issue: Angular CLI version 10.1.0 or newer is requiring a `tsconfig.base.json` file, which is not found

Currently working on my Angular 11 project, I am faced with the challenge of transitioning from tslint to eslint. When attempting the command below:

ng add @angular-eslint/schematics

An error arises:

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.

Despite having an Angular CLI version higher than 10.1.0, why do I still possess the tsconfig.base.json file and how can I resolve this issue?

Answer №1

After some troubleshooting, I managed to fix the problem by executing:

ng update @angular/cli --migrate-only --from 9 --to 10

This command effectively eliminated the tsconfig.base.json file and enabled me to smoothly continue with the migration process.

Answer №2

It's quite intriguing that in my situation, Angular had already been upgraded to version 10, yet the tsconfig.base.json file was still lingering within the directory. I took matters into my own hands by removing the file manually and then running

ng add @angular-eslint/schematics
once again. Surprisingly enough, this approach proved to be successful 🎉.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Modifying the disabled attribute of an input tag upon button click in Angular 2

I am currently working on a function in Angular 2 where I want to toggle the disabled attribute of an input tag upon button click. Right now, I can disable it once but I am looking to make it switch back and forth dynamically. Below is the HTML template c ...

What steps should I take to resolve the issue with react-redux in my project?

I have been delving into the world of redux recently. I went ahead and installed redux using the following command: npm install -save redux @types/react-redux Despite my best efforts to troubleshoot, the issue persists... These are the dependencies in m ...

How can the `!` operator be utilized in MikroORM Typescript entities?

How can I declare a key in a JS object with an ! before the colon? MikroORM syntax for class @Entity() export class Post { // Using @PrimaryKey() decorator to designate primary key @PrimaryKey() id!: number; @Property({ type: "date", de ...

What is the best approach to creating customizable modules in Angular2?

I'm exploring the most effective approach to configuring modules in Angular 2. In Angular 1, this was typically achieved through providers. As providers have been altered significantly, what is the preferred method for passing configuration parameters ...

When working with TypeScript in Node, the module ""http"" does not have a default export available

const httpModule = require('http'); httpModule.createServer((req, res) => { res.end('Hello World'); }).listen(3000, () => console.log('Server is running on port 3000')); I've installed @types/node but ...

Discovering the method to display an updated image when transitioning from one component to another in Angular 4

When I try to change the image in the profile component, it does not update in the nav bar component. Although I am receiving the image data in the nav bar component, it is not reflecting in the HTML view unless I refresh the page. export class NavbarCo ...

Cordova Emulate Android cannot locate Gradle or an installed Android Studio, despite their presence

Error Message After taking a break from the project and returning to it, I encountered an error message that I couldn't resolve no matter what solution I tried. Seeking help here as I know the app itself should be functioning properly. If you are un ...

Issues with displaying content in <mat-step> element of Angular Material design

When installing Material in Angular and adding stepper HTML code, CSS, and importing all Mat modules into the app.module.ts file, the stepper is now visible. However, the stepper data is not showing up in the HTML. <mat-stepper #stepper> <mat-s ...

Setting options using the form group in dropdowns in Angular can greatly enhance the user experience

I have created a FormGroup called holidayform and set it up as follows: holidayform: FormGroup; this.holidayform = this.fb.group({ title: ['', [Validators.required]], entryDate: ['',], }) this.holidayform.patchValue ...

Enriching Angular Tables with Custom Buttons and Actions using ng2-smart-table

I am struggling to customize the button styles in ng2-smart-table. I have tried changing the code following the steps provided in the link below, but the buttons are still not appearing as desired. Specifically, I want to update the "Edit", "Delete", "Canc ...

Once the project is already created, you can integrate SASS into Angular CLI

Currently, I'm working on an Angular 4 project that was built using the Angular CLI. I'm aware that you can specify SASS as the styling option when creating a project with the Angular CLI, like this: ng new ProjectName --style=sass Now, I&apos ...

Discovering items located within other items

I am currently attempting to search through an object array in order to find any objects that contain the specific object I am seeking. Once found, I want to assign it to a variable. The interface being used is for an array of countries, each containing i ...

Leverage glob patterns within TypeScript declaration files

Utilizing the file-loader webpack plugin allows for the conversion of media imports into their URLs. For example, in import src from './image.png', the variable src is treated as a string. To inform TypeScript about this behavior, one can create ...

I am facing issues with my filtering functionality on the Angular Typescript mat-table component

I am facing issues while trying to filter my table, the reaction is not correct and I can't seem to find where I went wrong. Here is the HTML part : <mat-form-field appearance="outline"> <mat-label>Search</mat-label> & ...

Using Firestore to Query and Subscribe to Multiple Documents using an Array of IDs

Despite the limitations in querying multiple documents based on an Array of IDs, I frequently encounter situations where it becomes necessary. In this particular instance, I am faced with the challenge of selecting a random list of IDs which I believe is ...

Utilizing Sharepoint Online SPFX Web parts with React: A guide to selecting scripts dynamically based on environment requirements

Would it be possible for me to dynamically choose which script to utilize in my web component? This is how I currently have my imports set up: import * as jQuery from 'jquery'; import 'jqueryui'; Here's what I am aiming to achie ...

Preventing direct URL access with Angular redirects after refreshing the page

My website allows users to manage a list of users, with editing capabilities that redirect them to the /edit-user page where form information is preloaded. However, when users refresh the page with F5, the form reloads without the preloaded information. I ...

The lack of displaying the actual path in DevTools when using RouterLink in Angular 5

Could this be a bug or a specification that I can't seem to find in Angular 5? When I use routerLink in the following way: <button routerLink="/account/order/{{this.orderService.order._id}}/messages">Messages</button> Everything works fi ...

ConcatMap in RxJS processes only the last item in the queue

Currently, I am implementing NGRX with RXJS. Within the effects layer, I am utilizing a concatMap to organize my requests in a queue fashion. However, once the latest request is finished, I aim to execute the most recent item added to the queue instead of ...

Guidelines on declining a pledge in NativeScript with Angular 2

I have encountered an issue with my code in Angular 2. It works fine in that framework, but when I tried using it in a Nativescript project, it failed to work properly. The problem arises when I attempt to reject a promise like this: login(credentials:Cr ...