turbo icon indicating copy to clipboard operation
turbo copied to clipboard

[turbopack] tsconfig extends field doesn't resolve

Open vexCoder opened this issue 3 years ago • 1 comments
trafficstars

What version of Turbopack are you using?

1.6.3

What package manager are you using / does the bug impact?

Yarn v1

What operating system are you using?

Windows

Describe the Bug

Turbopack fails on a nextjs app when there is an extends field in the tsconfig.json. Error says extends field doesn't resolve correctly

Expected Behavior

Be able to extend local tsconfig files.

To Reproduce

create a package that exports tsconfig files. import it on a next 13 app and in the tsconfig extend it. run next dev --turbo

Reproduction Repo

No response

vexCoder avatar Nov 11 '22 23:11 vexCoder

I have got the same error. It occurred when I added analytics package from Vercel,

error - [typescript] [project-with-next]/node_modules/@vercel/analytics/tsconfig.json  An issue occurred while parsing a tsconfig.json file.
  extends doesn't resolve correctly

rwxzig avatar Nov 20 '22 10:11 rwxzig

Had the same issue, from a 3rd party library even though my tsconfig has skipLibCheck: true:

error - [typescript] [project-with-next]/node_modules/.pnpm/[email protected]/node_modules/popmotion/tsconfig.json  An issue occurred while parsing a tsconfig.json file.
  extends doesn't resolve correctly

yannbf avatar Nov 28 '22 09:11 yannbf

Also had the same issue: https://github.com/vercel/turbo/issues/2973

B4rsekerDev avatar Dec 12 '22 05:12 B4rsekerDev

Same here

jakeleventhal avatar Apr 25 '23 22:04 jakeleventhal