You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dynamic import of unpkg failed: Error [ERR_UNSUPPORTED_ESM_URL_SCHEME] #59189
import("https://unpkg.com/fib-wasm-pack-inline@0.1.0/dist/index.js")
.then(({ fib }) => {
for (let i = 0; i < 10; i++) {
console.log(fib(i))
}
})
// deno run ./test.js
// node 18 works fine
// node --experimental-network-imports ./test.js
// node 24 throw error
// node ./test.js
How often does it reproduce? Is there a required condition?
Always throw error
What is the expected behavior? Why is that the expected behavior?
No error
What do you see instead?
node:internal/modules/esm/load:46
throw new ERR_UNSUPPORTED_ESM_URL_SCHEME(url, supportedSchemes);
^
Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file and data are supported by the default ESM loader. Received protocol 'https:'
at getSourceSync (node:internal/modules/esm/load:46:11)
at defaultLoad (node:internal/modules/esm/load:88:34)
at ModuleLoader.load (node:internal/modules/esm/loader:821:12)
at ModuleLoader.loadAndTranslate (node:internal/modules/esm/loader:592:43)
at #createModuleJob (node:internal/modules/esm/loader:617:36)
at #getJobFromResolveResult (node:internal/modules/esm/loader:345:34)
at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:310:41)
at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:659:25) {
code: 'ERR_UNSUPPORTED_ESM_URL_SCHEME'
}
Node.js v24.4.1
Activity
Renegade334 commentedon Jul 24, 2025
This feature was removed entirely – see #53822.
himself65 commentedon Jul 25, 2025
Yeah, it has been removed from features. I think right now the way you can do is implement by registerHook API
Fix dynamic import on Windows