You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error : TypeError: WebAssembly.instantiate(): Import #0 module="a" error: module is not an object or function
Here is the wasm code I think it is referring too : (import "a" "a" (func $import0)) (import "a" "b" (func $import1 (param i32) (result i32))) (import "a" "c" (func $import2 (param i32 i32 i32 i32) (result i32))) (import "a" "d" (func $import3 (result i32))) (import "a" "e" (func $import4 (param i32))) (import "a" "f" (func $import5 (param i32 i32 i32) (result i32)))
This is do the errors when compiling.
Check out this comment: #10 (comment)
It solved all of my errors during compiling and should be a good step to do when encountering weird errors.
Error :
TypeError: WebAssembly.instantiate(): Import #0 module="a" error: module is not an object or function
Here is the wasm code I think it is referring too :
(import "a" "a" (func $import0)) (import "a" "b" (func $import1 (param i32) (result i32))) (import "a" "c" (func $import2 (param i32 i32 i32 i32) (result i32))) (import "a" "d" (func $import3 (result i32))) (import "a" "e" (func $import4 (param i32))) (import "a" "f" (func $import5 (param i32 i32 i32) (result i32)))
Compared to the demo wasm file :
(import "env" "b" (func $import0)) (import "env" "c" (func $import1 (param i32))) (import "env" "d" (func $import2 (param i32) (result i32))) (import "asm2wasm" "f64-rem" (func $import3 (param f64 f64) (result f64))) (import "env" "e" (func $import4 (result i32))) (import "env" "f" (func $import5 (param f64) (result f64))) (import "env" "g" (func $import6 (param i32))) (import "env" "h" (func $import7 (param i32))) (import "env" "i" (func $import8 (result i32))) (import "env" "j" (func $import9 (param i32 i32))) (import "env" "k" (func $import10 (param i32 i32) (result i32)))
Just a note I compiled it with the error mentioned in a previous post but it outputs the wasm file before that error.
The text was updated successfully, but these errors were encountered: