-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
broken nested and relative symlinks #263
Comments
Can you get me a production? I tried adding a test in the branch https://github.com/oxc-project/oxc-resolver/tree/extend-package
gives me the tsconfig
which seems to be correct because |
If you want to debug yourself: Line 1140 in 376e254
Resolving extended ts config just reuses the resolver: Lines 1193 to 1219 in 376e254
|
Thanks for the response! I tracked it down. Seems like this call to |
Would the solution be to recover in this call failing like the |
A reproduction would be better for me 😅 |
I'm still working on a repro, but it appears that the issue is in fact inside |
Here's your repro: https://github.com/NicholasLYang/oxc-repro. Let me know if you have any questions! |
tsconfig
using a package
@NicholasLYang released in v2.0.0 |
### Description There's a [bug in oxc-resolver](oxc-project/oxc-resolver#263) for symlinks that basically breaks tsconfig resolution with pnpm (in a specific scenario for extending a tsconfig that's a workspace dependency). Until that's fixed, this PR switches us to a fork that has a very dumb hot fix We also add tsconfig loading, either via a parameter or via walking up the path hierarchy for the closest tsconfig ### Testing Instructions Added a test based off of [my repro](https://github.com/nicholaslyang/oxc-repro). Validated that doesn't work with main branch of oxc-resolver, but does work on my fork
So uhh, this is a bit of a cart and a horse situation. You can extend a
tsconfig
using a package, e.g.This doesn't seem to work with
oxc_resolver
, understandably so, since resolving this package import requires...a resolver, which is what we're creating in the first place. But maybe we can do a "best shot" where we use a basic resolver to resolve theextends
key?Thanks!
The text was updated successfully, but these errors were encountered: