TypeStrong / ts-node

TypeScript execution and REPL for node.js
https://typestrong.org/ts-node
MIT License
12.93k stars 532 forks source link

ts-node is unable to resolve tsconfig files in Yarn workspace #2098

Closed unematiii closed 11 months ago

unematiii commented 11 months ago

Search Terms

2076, #2090, #2091

Expected Behavior

Prior to Typescript 5.3 (ts-node 10.9.1) I was able to compile and run my code with tsconfig files that extend files exposed in one of the projects workspaces.

Actual Behavior

[INFO] 15:08:30 ts-node-dev ver. 2.0.0 (using ts-node ver. 10.9.1, typescript ver. 5.3.3)
/Users/mati/Projects/project/node_modules/ts-node-dev/node_modules/ts-node/src/index.ts:859
    return new TSError(diagnosticText, diagnosticCodes, diagnostics);
           ^
TSError: ⨯ Unable to compile TypeScript:
error TS6053: File '@organization/project-tsconfig/node.json' not found.

Steps to reproduce the problem

Create workspace and tsconfig.json that extends another tsconfig.json in another workspace in the same project.

Specifications

Guerteltier commented 11 months ago

Why did you open an issue for a bug that was already reported twice and has already been fixed?

unematiii commented 11 months ago

Sorry, my bad. Apparently ts-node-dev has not been updated yet, so it was pulling in previous version of ts-node. Closing.