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

example with bubbletea apps support #16

Open
7flash opened this issue Nov 11, 2024 · 2 comments
Open

example with bubbletea apps support #16

7flash opened this issue Nov 11, 2024 · 2 comments

Comments

@7flash
Copy link

7flash commented Nov 11, 2024

charmbracelet/bubbletea#1231

@7flash
Copy link
Author

7flash commented Nov 16, 2024

I compiled my golang/bubbletea app to .wasm using https://github.com/BigJk/bubbletea-in-wasm

But when I copied bubbletea.wasm to examples and tried to execute it in web term, it shows an error:

[ERROR] Error: Can't detect a WASI namespace for the WebAssembly Module

@tryone144
Copy link
Member

The linked example compiles to a WebAssembly binary with a custom (Go-specific) JavaScript runtime. We currently don't support loading Go binaries with the JS runtime; only Emscripten is supported right now.

You may have more luck by targeting WASI, which we support with the wasmer runtime. For compiling Go to a WASI compatible binary see https://go.dev/wiki/WebAssembly#wasi-gooswasip1-port.

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

No branches or pull requests

2 participants