web-ifc-three icon indicating copy to clipboard operation
web-ifc-three copied to clipboard

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

Open berry4u opened this issue 2 years ago • 4 comments

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 avatar May 10 '23 22:05 berry4u

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 .

Runasia avatar May 12 '23 02:05 Runasia

Thank you Runasia unfortunately in my case the problem persists.

berry4u avatar May 13 '23 08:05 berry4u

I have a like problem

feiyayshx avatar Apr 24 '24 08:04 feiyayshx

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

simenandresen avatar Jun 19 '24 13:06 simenandresen