-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
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
compilerOptions.paths not resolved when tsconfig extends from another package #3767
Labels
Comments
It looks like this has to do with a pnpm-specific "workspace" feature and symlinks. |
This was referenced Jun 19, 2024
This was referenced Jun 30, 2024
This was referenced Sep 6, 2024
This was referenced Sep 7, 2024
This was referenced Sep 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ESBuild correctly follows the TS behaviour of the
extends
field intsconfig.json
looking into the exports field of a dependency, such as documented in #3058. For example this is resolved:when the
package.json
of@repo/tsconfig
exports./base
:However, if
@repo/tsconfig/base
includes acompilerOptions.paths
property, these aliases cannot be resolved when building and the build fails. The only way for it to be resolved is to instead change the original extends field to a relative import, such as:Paths should be resolved even when extending from a tsconfig from a package.
Please see this reproduction repo
The text was updated successfully, but these errors were encountered: