Closed
Description
After upgrading typescript from 5.2.2 to 5.3.2, I started getting error when using ts-node with tsconfig/bases. See below.
Expected Behavior
Prints typescript config to standard output.
Actual Behavior
Error:
TSError: ⨯ Unable to compile TypeScript:
error TS6053: File '@tsconfig/node20/tsconfig.json' not found.
Steps to reproduce the problem
npx ts-node --showConfig
Minimal reproduction
Workaround
Use relative path to tsconfig/bases file:
- "extends": "@tsconfig/node20/tsconfig.json",
+ "extends": "./node_modules/@tsconfig/node20/tsconfig.json",
Specifications
- ts-node version: 10.9.1
- node version: 20.9.0
- TypeScript version: 5.3.2
- tsconfig.json, if you're using one:
{
"extends": "@tsconfig/node20/tsconfig.json",
"compilerOptions": {
"rootDir": ".",
"outDir": "./dist"
}
}
- package.json:
{
"name": "ts-node-bug",
"version": "0.0.0-dev",
"devDependencies": {
"@tsconfig/node20": "20.1.2",
"ts-node": "10.9.1",
"typescript": "5.3.2"
}
}
- Operating system and version: MacOS 11.6
Metadata
Metadata
Assignees
Labels
No labels