turbo icon indicating copy to clipboard operation
turbo copied to clipboard

`turbo gen run` throws `error TS6053: File '@tsconfig/node20/tsconfig.json' not found.`

Open lbdm44 opened this issue 1 year ago • 0 comments

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

  1. Check out https://github.com/lbdm44/tsconfig-node20-turbo-gen-issue
  2. yarn install
  3. yarn turbo gen run

Additional context

No response

lbdm44 avatar Feb 22 '24 19:02 lbdm44