Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

@angular-eslint: You have used a rule which requires type information, but don't have parserOptions set to generate type

In my NX 20 + Angular 19 project, I got this error while trying to upgrade to the latest 19.x version of Angular and Angular eslint:

Error while loading rule '@angular-eslint/no-uncalled-signals': You have used a rule which requires type information, but don't have parserOptions set to generate type information for this file. See https://typescript-eslint.io/getting-started/typed-linting for enabling linting with type information.

like image 768
Francesco Borzi Avatar asked Dec 07 '25 03:12

Francesco Borzi


1 Answers

The solution was adding the following in the .eslintrc.json file:

"parserOptions": {
  "projectService": true,
  "allowAutomaticSingleRunInference": true
}

in the overrides of:

"files": ["*.ts", "*.tsx"],

so now it looks like:

"overrides": [
  {
    "files": ["*.ts", "*.tsx"],
    "parserOptions": {
      "projectService": true,
      "allowAutomaticSingleRunInference": true
    },
    ...
  }
  ...
]
like image 117
Francesco Borzi Avatar answered Dec 08 '25 17:12

Francesco Borzi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!