as-bind icon indicating copy to clipboard operation
as-bind copied to clipboard

__getArray is not a function

Open Chris-Kin opened this issue 4 years ago β€’ 2 comments

Uncaught TypeError: t.exports.__getArray is not a function

  1. import * as loader from "./node_modules/as-bind/dist/as-bind.esm.js"; (0.8.2)
  2. const module = await loader.instantiate(
        fetch("build/optimized.wasm"),
        importObject
    );
    
  3. get the error as-bind.esm.js:1 Uncaught TypeError: t.exports.__getArray is not a function in chrome.

Chris-Kin avatar Sep 01 '21 07:09 Chris-Kin

ζˆͺ屏2021-09-01 δΈ‹εˆ3 56 52

Chris-Kin avatar Sep 01 '21 07:09 Chris-Kin

@Chris-Kin Sorry for the late reply! This got lost in my Github Notifications! 😯 That's an interesting bug, can you show how you compiled the Wasm module? I think you may have skipped using the transform, as mentioned in the Quick Start? https://github.com/torch2424/as-bind#quick-start

torch2424 avatar Sep 14 '21 19:09 torch2424