My ESLint is showing 'parsing error parseroptions.project has been set for @typescript-eslint/parser' even though I have a `tsconfig.json`. What else could be wrong?

Question

Grade: Education Subject: Support
My ESLint is showing 'parsing error parseroptions.project has been set for @typescript-eslint/parser' even though I have a `tsconfig.json`. What else could be wrong?
Asked by:
165 Viewed 165 Answers

Answer (165)

Best Answer
(288)
Even with a `tsconfig.json`, the error can persist if: the path specified in `parserOptions.project` is incorrect, the `tsconfig.json` itself has errors, or you are not using the `@typescript-eslint/typescript-estree` package, which is the underlying parser that handles type information.