You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
JoshuaKGoldberg
changed the title
Bug: <short description of the issue>
Bug: Excess <tsconfigRootDir>/../../... before parserOptions.project complaints
Dec 30, 2022
Before You File a Bug Report Please Confirm You Have Done The Following...
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:The path should instead be printed as
users/josh/repos/trpc/tsconfig.json
.Reproduction Repository Link
trpc/trpc@70acdd4
Repro Steps
git clone https://github.com/trpc/trpc
git checkout 70acdd489a71425fb4ee186704ecdd2944694b1b
pnpm install
pnpm build
pnpm lint
Versions
@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
The text was updated successfully, but these errors were encountered: