-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
yarn pnp should be the first preloaded module in NODE_OPTIONS #6941
Comments
Yeah, that's the problem with NODE_OPTIONS - it makes the ordering problematic. For example, there are legitimate situations where you'd want the PnP preload to be made after what's already preloaded. And the other way around is true as well: if a new I can't wait for the Loader API - hopefully it'll force all this to become explicit through configuration rather than a dynamic env parameter. I wonder if a shim could exist until then... |
I actually am in that situation, but because Update: Closed by #6942. |
Why do you need to reload PnP after |
The |
The pnp module is currently appended to the existing
NODE_OPTIONS
value which allows other modules to be attempted to be pre-loaded first and be unresolved.See source here:
Instead it should be something like:
Related to #6629 (comment).
Update:
PR opened at #6942.
The text was updated successfully, but these errors were encountered: