We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
extends
exports
When a tsconfig.json has extends and that uses exports field to be resolved and using yarn pnp, esbuild fails to resolve the base tsconfig file. The following warning is output.
tsconfig.json
▲ [WARNING] Cannot find base config file "D:\\path\\to\\project\\packages\\tsconfigs\\config" [tsconfig.json] tsconfig.json:2:13: 2 │ "extends": "tsconfigs/config", ╵ ~~~~~~~~~~~~~~~~~~
By running yarn show-config in packages/app, I can see TypeScript resolving it without issue.
yarn show-config
packages/app
If I set nodeLinker: pnpm or nodeLinker: node-modules, esbuild does not output any warnings.
nodeLinker: pnpm
nodeLinker: node-modules
Reproduction: https://github.com/sapphi-red-repros/esbuild-yarn-pnp-tsconfig-extends-exports-field-repro Original issue: vitejs/vite#16156
The text was updated successfully, but these errors were encountered:
Thanks for the report. I can reproduce this. Here's a link to this reproduction on esbuild's playground (mostly for myself):
Playground link
Sorry, something went wrong.
4d997d9
No branches or pull requests
When a
tsconfig.json
has extends and that uses exports field to be resolved and using yarn pnp, esbuild fails to resolve the base tsconfig file. The following warning is output.By running
yarn show-config
inpackages/app
, I can see TypeScript resolving it without issue.If I set
nodeLinker: pnpm
ornodeLinker: node-modules
, esbuild does not output any warnings.Reproduction: https://github.com/sapphi-red-repros/esbuild-yarn-pnp-tsconfig-extends-exports-field-repro
Original issue: vitejs/vite#16156
The text was updated successfully, but these errors were encountered: