Skip to content

Error using IIFE AsBind #53

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

Closed
tyronedougherty opened this issue Nov 5, 2020 · 5 comments · Fixed by #55
Closed

Error using IIFE AsBind #53

tyronedougherty opened this issue Nov 5, 2020 · 5 comments · Fixed by #55
Assignees
Labels
bug Something isn't working

Comments

@tyronedougherty
Copy link

Hi there,

I've run into the following error whenever I try to use the AsBindIIFE.AsBind.instantiate function:

as-bind.iife.js:11 Uncaught (in promise) Error: Required Exported AssemblyScript Runtime functions are not present. Runtime must be set to "full" or "stub"

Any idea what the issue is? I've tried setting the runtime like so in my package.json:

    "asbuild:untouched": "asc ./node_modules/as-bind/lib/assembly/as-bind.ts assembly/index.ts --target debug --runtime full",

But that seems to have had no effect.

@torch2424 torch2424 self-assigned this Nov 6, 2020
@torch2424 torch2424 added the bug Something isn't working label Nov 6, 2020
@torch2424
Copy link
Owner

torch2424 commented Nov 6, 2020

Hello! Thank you for the issue! 😄

Hmmm I think this issue is coming from the AssemblyScript loader, that AsBind uses as a dependency...

cc @dcodeIO or @MaxGraey , do either of you know why this might be?


In the meantime, does compiling your AssemblyScript module without --target debug work? 🤔

@MaxGraey
Copy link

MaxGraey commented Nov 6, 2020

I assume you should update how loader imported according to this: AssemblyScript/assemblyscript#1513

@torch2424
Copy link
Owner

Ah! It broke under me, cool I can fix this tomorrow, along with #50 😄

Thanks @MaxGraey ! 👍

@tyronedougherty
Copy link
Author

Thanks @torch2424 😄

@torch2424
Copy link
Owner

Fixed and published in 0.5.0 😄

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

Successfully merging a pull request may close this issue.

3 participants