Closed glethuillier closed 1 year ago
Solved by using this: https://github.com/wasmerio/wasmer-go/blob/master/examples/wasi/main.go#L16-L22
Perhaps would it be possible to clarify the documentation to explain that wasmer.NewWasiStateBuilder("wasi-program")
is required?
Describe the bug
The following error occurs when trying to instantiate a WASM module that contains a call to
fmt.Println
:Missing import: wasi_snapshot_preview1.fd_write
Steps to reproduce
test.wasm
(from this issue)Expected behavior
Actual behavior
Additional context
This issue is related to this problem.
Compiled on macOS. Tinygo 0.27.0 installed via brew.