-
Notifications
You must be signed in to change notification settings - Fork 30.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
module: clarify cjs global-like error on ModuleJobSync #56491
base: main
Are you sure you want to change the base?
Conversation
Review requested:
|
There is still one case that I think should be covered by this message highlighted by https://github.com/nodejs/node/blob/main/test/es-module/test-esm-detect-ambiguous.mjs#L212 where an |
For my own clarification: why am I tagged on this one? |
Not sure if I tagged wrong. I saw this repro on the nodejs loaders group https://github.com/jsumners-nr/exports-bug |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #56491 +/- ##
==========================================
+ Coverage 88.52% 89.12% +0.59%
==========================================
Files 660 662 +2
Lines 190900 191580 +680
Branches 36628 36863 +235
==========================================
+ Hits 168995 170742 +1747
+ Misses 15090 13704 -1386
- Partials 6815 7134 +319
|
@jsumners you sort of requested this in slack about a month ago :) |
Thank you. Please tag |
I presume you're asking so it will give you a reminder (which it won't do when you tag yourself). @jsumners-nr :) |
I participate in the loaders group through my work persona. I will review when I am back at work tomorrow. Technically, I wouldn't be tagging myself since it is separate accounts. I'm really just trying to make it clear which account to use for these things. |
This PR copies the error message used for cjs global-like import errors from
ModuleJob
toModuleJobSync
to cover more cases.