Skip to content

Trouble instantiating a wasm object with wasmer #3696

Answered by theduke
inviti8 asked this question in General
Discussion options

You must be logged in to vote

You are building with GOOS=js, which builds for the browser and requires a Javascript helper that provides the go.debug import.

You can build with Go for WASM, but then you will need to provide all the required interaction with the Wasm code yourself (via function exports and imports).

You can also use tinygo, which has WASI support. WASI allows you to use basic things like standard IO (stdin,out,err), file system access, etc.

You need to pick between one of those options, but building for JS will not work.

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Michael-F-Bryan
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❓ question I've a question!
4 participants
Converted from issue

This discussion was converted from issue #3651 on March 21, 2023 08:54.