Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

__getArray is not a function #97

Open
Chris-Kin opened this issue Sep 1, 2021 · 2 comments
Open

__getArray is not a function #97

Chris-Kin opened this issue Sep 1, 2021 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Chris-Kin
Copy link

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
Copy link
Author

截屏2021-09-01 下午3 56 52

@torch2424 torch2424 self-assigned this Sep 14, 2021
@torch2424 torch2424 added the bug Something isn't working label Sep 14, 2021
@torch2424
Copy link
Owner

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants