You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running esbuild ./input.ts in a workspace matching the following conditions fails with stack overflow error:
The monorepo contains a root-level tsconfig.json.
That root-level tsconfig.json extends a shared tsconfig.json.
The shared tsconfig.json is exposed via the package.json exports field.
The workspace has an independent tsconfig.json of its own
Notes
workspace-level tsconfig.json files extending one of the shared configs work fine. The issue does not arise until there is a root tsconfig.json and a workspace tsconfig.json.
I have not tested if using a relative extends (example: ../../tsconfig.json) resolves the issue
Running
esbuild ./input.ts
in a workspace matching the following conditions fails with stack overflow error:tsconfig.json
.tsconfig.json
extends a sharedtsconfig.json
.tsconfig.json
is exposed via the package.jsonexports
field.tsconfig.json
of its ownNotes
tsconfig.json
files extending one of the shared configs work fine. The issue does not arise until there is a roottsconfig.json
and a workspacetsconfig.json
.extends
(example:../../tsconfig.json
) resolves the issueReproduction
yarn install
yarn build
Additional info
If the
extends
in the roottsconfig.json
is removed, no error happens.If
exports
is removed from thetsconfigs
package and"extends": "tsconfigs/configs/tsconfig.json",
is used instead for thetsconfig.json
invite-demo
package and the roottsconfig.json
, no error happens.Original issue: vitejs/vite#18094
The text was updated successfully, but these errors were encountered: