WasmExplorer
WasmExplorer copied to clipboard
TypeError: WebAssembly Instantiation: Imports argument must be present and must be an object
Hi
I downloaded .wasm file . and tried to run following command .
[fetch('test.wasm').then(res => res.arrayBuffer()).then(buf => WebAssembly.instantiate(buf))
Promise {
It has shown me this error on console. TypeError: WebAssembly Instantiation: Imports argument must be present and must be an object
This error is typical when a user tries to instantiate a wasm module that requires imports, but user fails to provide them. Could you fork/share the entire project here and/or how do you create test.wasm ?
I used an online web assembly explorer