Skip to content
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

Eslint Issue: The file does not match your project config... The file must be included in at least one of the projects provided #5136

Closed
zeeshanakram3 opened this issue Apr 15, 2024 · 0 comments · Fixed by #5137
Assignees
Labels
bug Something isn't working

Comments

@zeeshanakram3
Copy link
Contributor

Issue

All the typescript source files in all of the packages in monorepo are showing the following error, when you open the file in Vscode.

Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.
The file does not match your project config: query-node/mappings/src/content/channel.ts.
The file must be included in at least one of the projects provided.eslint

This issue can also be reproduced if you run eslint command from monorepo root. e.g.

$ npx eslint  ./tests/network-tests/
...
/workspace/joystream/tests/network-tests/src/utils.ts
  0:0  error  Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.
The file does not match your project config: tests/network-tests/src/utils.ts.
The file must be included in at least one of the projects provided
✖ 234 problems (234 errors, 0 warnings)

Cause

The reason is that there is include option in the root tsconfig.json file, which was added in #4871, and subsequently this bug was moved to master branch with nara release

Fix

Remove include option from the root tsconfig.json file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant