turbo
turbo copied to clipboard
`turbo gen run` throws `error TS6053: File '@tsconfig/node20/tsconfig.json' not found.`
Verify canary release
- [X] I verified that the issue exists in the latest Turborepo canary release.
Link to code that reproduces this issue
https://github.com/lbdm44/tsconfig-node20-turbo-gen-issue
What package manager are you using / does the bug impact?
Yarn v2/v3/v4 (node_modules linker only)
What operating system are you using?
Mac
Which canary version will you have in your reproduction?
1.12.5-canary.0
Describe the Bug
When trying to run yarn turbo gen run, an error is thrown:
>>> Modify "tsconfig-node20-turbo-gen-issue" using custom generators
>>> Unexpected error. Please report it as a bug:
error TS6053: File '@tsconfig/node20/tsconfig.json' not found.
This happens only when using @tsconfig/node20 and specifying a version of typescript in package.json.
Expected Behavior
Expected behavior is that the generator runs without erroring out.
To Reproduce
- Check out https://github.com/lbdm44/tsconfig-node20-turbo-gen-issue
yarn installyarn turbo gen run
Additional context
No response