Closed
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I have searched for related issues and found none that matched my issue.
- I have read the FAQ and my problem is not listed.
Issue Description
The error message for a TS file not being found can sometimes start with <tsconfigRootDir>/../../../../
before the root path to the user's repo:
/Users/josh/repos/trpc/examples/next-prisma-websockets-starter/test/playwright.test.ts
0:0 error Parsing error: ESLint was configured to run on `<tsconfigRootDir>/examples/next-prisma-websockets-starter/test/playwright.test.ts` using `parserOptions.project`: <tsconfigRootDir>/../../../../users/josh/repos/trpc/tsconfig.json
However, that TSConfig does not include this file. Either:
- Change ESLint's list of included files to not include this file
- Change that TSConfig to include this file
- Create a new TSConfig that includes this file and include it in your parserOptions.project
See the typescript-eslint docs for more info: https://typescript-eslint.io/linting/troubleshooting##i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-file
The path should instead be printed as users/josh/repos/trpc/tsconfig.json
.
Reproduction Repository Link
Repro Steps
git clone https://github.com/trpc/trpc
git checkout 70acdd489a71425fb4ee186704ecdd2944694b1b
pnpm install
pnpm build
pnpm lint
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin |
5.47.0 |
@typescript-eslint/parser |
5.47.0 |
@typescript-eslint/scope-manager |
5.47.0 |
@typescript-eslint/typescript-estree |
5.47.0 |
@typescript-eslint/type-utils |
5.47.0 |
@typescript-eslint/utils |
5.47.0 |