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 issue is from extends keyword of tsconfig.json file, if it reference to a file based location is file, but if it is reference to a pacakge will occur extendee file not found error.
{
"extends": "@tsconfig/node-lts/tsconfig.json"
}
In the meanwhile, tsc and jest.config.js doesn't have this issue.
Actual Behavior
╰─ pnpm test-ts ─╯
> [email protected] test-ts /Users/anli/Developer/pp/ts-config-extends
> jest --config jest.config.ts --passWithNoTests
Error: Jest: Failed to parse the TypeScript config file /Users/anli/Developer/pp/ts-config-extends/jest.config.ts
TSError: ⨯ Unable to compile TypeScript:
error TS6053: File '@tsconfig/node-lts/tsconfig.json' not found.
at readConfigFileAndSetRootDir (/Users/anli/Developer/pp/ts-config-extends/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/jest-config/build/readConfigFileAndSetRootDir.js:116:13)
at async readInitialOptions (/Users/anli/Developer/pp/ts-config-extends/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/jest-config/build/index.js:392:15)
at async readConfig (/Users/anli/Developer/pp/ts-config-extends/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/jest-config/build/index.js:147:48)
at async readConfigs (/Users/anli/Developer/pp/ts-config-extends/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/jest-config/build/index.js:424:26)
at async runCLI (/Users/anli/Developer/pp/ts-config-extends/node_modules/.pnpm/@[email protected][email protected]/node_modules/@jest/core/build/cli/index.js:151:59)
at async Object.run (/Users/anli/Developer/pp/ts-config-extends/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/jest-cli/build/run.js:130:37)
Search Terms
ts-node
ts-config.json
extends
Expected Behavior
The issue is from
extends
keyword oftsconfig.json
file, if it reference to a file based location is file, but if it is reference to a pacakge will occur extendee file not found error.In the meanwhile,
tsc
andjest.config.js
doesn't have this issue.Actual Behavior
Steps to reproduce the problem
Minimal reproduction
https://github.com/kidylee/ts-config-issue-mre
Specifications
ts-node v10.9.1
node v19.7.0
compiler v5.3.2
The text was updated successfully, but these errors were encountered: