WasmExplorer icon indicating copy to clipboard operation
WasmExplorer copied to clipboard

TypeError: WebAssembly Instantiation: Imports argument must be present and must be an object

Open lakinmohapatra opened this issue 6 years ago • 2 comments

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

lakinmohapatra avatar Mar 20 '18 06:03 lakinmohapatra

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 ?

yurydelendik avatar Mar 20 '18 12:03 yurydelendik

I used an online web assembly explorer

lakinmohapatra avatar Mar 29 '18 11:03 lakinmohapatra