ThatOpen / web-ifc-three

The official IFC Loader for Three.js.
https://ifcjs.github.io/info/
MIT License
506 stars 132 forks source link

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

Open berry4u opened 1 year ago

berry4u commented 1 year ago

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?

Runasia commented 1 year ago

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 commented 1 year ago

Thank you Runasia unfortunately in my case the problem persists.

feiyayshx commented 2 months ago

I have a like problem

simenandresen commented 1 week ago

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