Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kateinoigakukun opened this issue Jan 4, 2024 · 3 comments
Labels
browser Not working in Browser

Comments

@kateinoigakukun
Copy link
Contributor

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)
@kateinoigakukun kateinoigakukun added the browser Not working in Browser label Jan 4, 2024
@coder0107git
Copy link

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
Copy link
Contributor Author

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
Copy link
Member

ije commented Feb 18, 2024

The 2.5.0 includes ruby/ruby.wasm#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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser Not working in Browser
Projects
None yet
Development

No branches or pull requests

3 participants