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

RuntimeError: abort(LinkError: WebAssembly.instantiate(): #168

Open
berry4u opened this issue May 10, 2023 · 4 comments
Open

RuntimeError: abort(LinkError: WebAssembly.instantiate(): #168

berry4u opened this issue May 10, 2023 · 4 comments

Comments

@berry4u
Copy link

berry4u commented May 10, 2023

Hi,
I am getting this error using web-ifc-three (0.0.125) and three.js (0.149.0) in a typescript project with webpack:
RuntimeError: abort(LinkError: WebAssembly.instantiate(): Import #0 module="a" function="a" error: function import requires a callable). Build with -s ASSERTIONS=1 for more info.
at abort (web-ifc-api.js:575:1)
at web-ifc-api.js:638:1

The error is generated in web-ifc-api.js in the function instantiateArrayBuffer(receiver)
image

Has anyone had the same problem?

@berry4u berry4u changed the title webpack and critical dependency warning RuntimeError: abort(LinkError: WebAssembly.instantiate(): May 11, 2023
@Runasia
Copy link

Runasia commented May 12, 2023

I find that if i delete the 'await' behind of the ifc_loader.load() in my code , it can work ,so i think its maybe due to async mistake. Wish it's maybe help you .

@berry4u
Copy link
Author

berry4u commented May 13, 2023

Thank you Runasia unfortunately in my case the problem persists.

@feiyayshx
Copy link

I have a like problem

@simenandresen
Copy link

simenandresen commented Jun 19, 2024

I got the same problem when migrating from Webpack to Vite. @berry4u did you solve this in the end?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants