DenoDDeno
Powered by
ÓscarÓ
Deno•4y ago•
3 replies
Óscar

Dynamic npm imports don't work

Hey there.
It looks like dynamic imports don't work with
npm
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...
npm specifiers roadmap · Issue #15960 · denoland/deno
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Read permission & NPM imports
KaKi87KKaKi87 / help
3y ago
Emit with dynamic imports?
KayKKay / help
2y ago
Typing for Dynamic imports
ScarlettSScarlett / help
3y ago