CLI: cannot find definition for imported function
FineKe opened this issue · comments
Error: failed to instantiate and start the Wasm module: cannot find definition for import wbindgen_placeholder::__wbindgen_describe with type Func(FuncType { params: [I32], results: [] })
Hi @FineKe ,
- which Wasmi version are you using?
- how are you using Wasmi? via its CLI tool? as library?
- can you share your code?
- did you update Wasmi and if so, did it work before?
Please share more details.
It looks as if you were using the Wasmi CLI tool and are trying to use a Wasm binary that imports a function named wbindgen_placeholder::__wbindgen_describe
which is not possible via CLI. You can only use WASI compatible Wasm binaries with the Wasmi CLI. If you want to use Wasm binaries that use a non-standard interface to communicate with their host you have to use Wasmi as a library.
@FineKe did this resolve your question so we can close this?
Closed due to inactivity.