D
Deno

help

Dynamic npm imports don't work

SÓscar9/29/2022
Hey there. It looks like dynamic imports don't work with npm specifiers. For example:
await import("npm:react")
Uncaught TypeError: Loading unprepared module: npm:react
at async <anonymous>:2:1
await import("npm:react")
Uncaught TypeError: Loading unprepared module: npm:react
at async <anonymous>:2:1
I din't see anything in the npm roadmap (https://github.com/denoland/deno/issues/15960) so I wonder if this is planned.
GitHub
npm specifiers roadmap · Issue #15960 · denoland/deno
Typescript support LSP Figure out how to have node globals not conflict with deno globals (will probably add a prefix to all node globals, but I&#39;m sure we will discover some fun issues) @de...
Bbartlomieju9/29/2022
Yes, it's a bug. Please open an issue
Bbartlomieju9/29/2022
thanks!

Looking for more? Join the community!