wasm-bridge icon indicating copy to clipboard operation
wasm-bridge copied to clipboard

Web failing to instantiate

Open kayhhh opened this issue 8 months ago • 1 comments

I have a simple schema:

package example:schema;

world my-world {
  export my-interface;
}

interface my-interface {
  resource my-res {
    constructor();
    my-method: func(value: f32);
  }
}

I am able to use it in native builds, but run into an error with the web build: Asynchronously instantiate main module TypeError: import object field '[export]example:schema/my-interface' is not an Object

Full code: https://github.com/kayhhh/wasm-bridge-example/tree/5e9165141f47344b75b82644f63f5db0430fcaed

I have gotten some of the test examples in this repo working, but with certain schemas like this I get errors.

kayhhh avatar Jun 18 '24 18:06 kayhhh