Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
unematiii opened this issue Dec 8, 2023 · 2 comments
Closed

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

unematiii opened this issue Dec 8, 2023 · 2 comments

Comments

@unematiii
Copy link

unematiii commented Dec 8, 2023

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

  • ts-node version: 10.9.1
  • node version:v20.9.0
  • TypeScript version: 5.3.3
  • Operating system and version: macOS Sonoma
@Guerteltier
Copy link

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

@unematiii
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants