-
Notifications
You must be signed in to change notification settings - Fork 811
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Trouble instantiating a wasm object with wasmer #3651
Comments
Your module try to use go debug function and it's not part of the wasi standard. Did you target WASM32-WASI or something else? What command line did you used? something like |
Hi, thanks for the quick response. This is the the full shell script:
|
You are building with 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 You need to pick between one of those options, but building for JS will not work. |
Thanks for the details, much appreciated. :) I'm new to web assembly stuff.
In all honesty, not sure how to do that. Could you point me to a good example so I can wrap my head around how it works? Again much appreciated. |
Hey @inviti8, I haven't used |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Summary
Trying to use wasmer to work with a wasm object compiled from Go. When using wasmer, to create the instance, it throws an error. This wasm object works for js web assembly. This is the error thrown:
` instance = Instance(module)
RuntimeError: Error while importing "go"."debug": unknown import. Expected Function(FunctionType { params: [I32], results: [] })`
Not sure of what the issue may be, so don't where to look in order to debug the issue. Any info you may have would be greatly appreciated.
Thanks much!
The text was updated successfully, but these errors were encountered: