esm-dev / esm.sh

The no-build CDN for modern web development.
https://esm.sh
MIT License
3.2k stars 151 forks source link

Failed to import - `@ruby/wasm-wasi@2.4.1-2023-12-31-a/dist/browser` #785

Open kateinoigakukun opened 11 months ago

kateinoigakukun commented 11 months ago

Failing module

import {} from "https://esm.sh/@ruby/wasm-wasi@2.4.1-2023-12-31-a/dist/browser"

Error message

GET https://esm.sh/v135/@ruby/wasm-wasi@2.4.1-2023-12-31-a/es2022/dist.js net::ERR_ABORTED 500 (Internal Server Error)
coder0107git commented 9 months ago

This might not actually be an issue with esm.sh. When I try it on esm.run it also can't bundle it. I can get it to work using the raw file with an import map (jsfiddle) but that defeats the purpose of using esm.sh.

kateinoigakukun commented 9 months ago

The 2.5.0 includes a workaround fix to avoid this issue. I think you can reproduce it with the exact same version I mentioned in the original description: https://esm.sh/@ruby/wasm-wasi@2.4.1-2023-12-31-a/dist/browser

ije commented 9 months ago

The 2.5.0 includes https://github.com/ruby/ruby.wasm/pull/362 to avoid this issue. I think you can reproduce it with the exact same version I mentioned in the original description: https://esm.sh/@ruby/wasm-wasi@2.4.1-2023-12-31-a/dist/browser

nice, i think this is a bug for resolving index.js as your pr metioned, i will take a look! thanks!