Erfan
Erfan2d ago

Deno 2.4 emit for bundling with "npm:" imports inside code

Hi People, i try to bundle my code with Deno emit. Inside my code i am using packages from npm, like npm:solid-js@^1.9.6. It looks like the loader from bundle can not resolve the package. Does someone know, if it is somehow possible to make it work ? The Error: Bundler.loader.load(npm:solid-js@^1.9.6) failed: Module "npm:solid-js@^1.9.6" was an unsupported module kind.
2 Replies
marvinh.
marvinh.2d ago
unlikely, deno_emit hasn't been maintained in a while. You're much better of with esbuild + the deno loader plugin or vite + the deno plugin
Erfan
ErfanOP2d ago
ok tanks 🙏 for the info. I will switch to vite 🙂 i would love to stay completely in the Deno World. Will hopefully be possible in the future

Did you find this page helpful?