-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
import.meta.resolve
no longer available in loaders >= v20
#49198
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
Comments
import.meta.resolve
no longer available in loaders >= v20
@nodejs/loaders cc |
Yes it's a known limitation, |
If it’s not documented yet then we should at least mention it in the docs, with any workarounds if there are any. |
Would you like to send a PR? |
@aduh95 I don’t know who you’re addressing this to. I asked about possible workarounds in https://openjs-foundation.slack.com/archives/C053UCCP940/p1692289284713799. |
Uh oh!
There was an error while loading. Please reload this page.
Version
20.0.0
Platform
Darwin ....* 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:22 PDT 2022; root:xnu-8020.121.3~4/RELEASE_X86_64 x86_64
Subsystem
No response
What steps will reproduce the bug?
package.json
loader.mjs
index.mjs
How often does it reproduce? Is there a required condition?
What is the expected behavior? Why is that the expected behavior?
console.log
in loader should resolveimport.meta.resolve
What do you see instead?
undefined
is printedAdditional information
import.meta.resolve
exists in <= Node v20, at least I checked in 16-19.I didn't see anywhere in 20+ release notes of this capability being removed. If this is known, feel free to close this.
The text was updated successfully, but these errors were encountered: