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
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.
This issue can also be reproduced if you run
eslintcommand from monorepo root. e.g.Cause
The reason is that there is include option in the root
tsconfig.jsonfile, which was added in #4871, and subsequently this bug was moved tomasterbranch withnarareleaseFix
Remove
includeoption from the roottsconfig.jsonfile