-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Basic PnP dependency resolution not working #1150
Comments
Hey! ESM modules go through a completely different codepath in Node (cjs / esm). The problem is that this codepath is still very new, and although modules have technically been marked stable the way to alter the resolution is still in heavy discussion (nodejs/modules#351). There have been improvements lately with the new version of the loader API that could theoretically use the PnP resolver, but I haven't had the bandwidth to look into it yet (especially since I don't use native ESM myself atm). Help wanted!
You can't find it - the files in |
Thanks @arcanis for all the info! Then at least I know what I should expect in the nearest future, and in my case I'll have to fall back to using |
Hi! 👋 This issue looks stale, and doesn't feature the Note that we require Sherlock reproductions for long-lived issues (rather than standalone git repositories or similar) because we're a small team. Sherlock gives us the ability to check which bugs are still affecting the master branch at any given point, and decreases the amount of code we need to run on our own machines (thus leading to faster bug resolution faster). It helps us help you! 😃 If you absolutely cannot reproduce a bug on Sherlock (for example because it's a Windows-only issue), a maintainer will have to manually add the |
Tracked in #638. |
Hi,
Using this minimal library, the following three commands give the following error message.
Error: Cannot find package 'del' imported from C:\...\yarn2test\test.mjs
This suggests that the PnP functionality in yarn is not activated. To verify this I need to do some debugging, or at least debug logging.
The stack trace tells that node uses some default resolver:
Unfortunately I've searched through my whole hard disk to find the default_resolve.js file with no luck and even looked thorugh the zip files. I've also looked in the zip packages in the cache and I haven't found any way to get a non-minified copy of yarn-berry.js. So, I feel quite crippled and have no other option than to beg for some help. I think yarn is improving the javascript dependency story quite a bit, so I really would like to have this working.
Cheers!
Environment:
The text was updated successfully, but these errors were encountered: