New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser #1531
Comments
@thany i have few questions:
|
Is there a temporary workaround for 2.4.0? This is a rather complex project and I can't willy nilly upgrade packages. We will be upgrading tho, but not yet 😀 |
minimum what you will have to update is but if you are looking for temporary fix (by editing package), than you can manually file:
you can remove 9720d2c#diff-32cd9e2645e695e2ede2d99856727abfL402 but i do recommend to upgrade at least |
This bug was fixed in a later version. |
What code were you trying to parse?
An empty, newly added file anywhere within the project.
What did you expect to happen?
Nothing. The file is included by the
include
directive intsconfig.json
so this error seems unjust to me. All other files at the same level as that empty file do not throw this error, so the inclusion of these files in the project is probably configured correctly.What actually happened?
An error is thrown on the empty file:
Also tried
I tried to change my
tsconfig.json
to explicitly include all ts/tsx files, by changing theinclude
directive like so:Or even going all-globs:
This appears to make no difference.
Versions
@typescript-eslint/parser
2.4.0
TypeScript
3.6.4
ESLint
6.5.1
node
10.16.3
npm
6.9.0
.eslintrc
My
.eslint
is located at the project root, "next to"nodule_modules
and such.tsconfig.json
My
tsconfig.json
is located "next to" my.eslintrc
The text was updated successfully, but these errors were encountered: