ThatOpen / web-ifc-three

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

Demo page not working: function import requires a callable #156

Closed wwwouter closed 1 year ago

wwwouter commented 1 year ago

Tested https://ifcjs.github.io/web-ifc-three/example/ on Mac OSX with Chrome and Safari:

bundle.js:37339 wasm streaming compile failed: LinkError: WebAssembly.instantiate(): Import #49 module="a" function="X" error: function import requires a callable

Complete console output:

image
Autet commented 1 year ago

image

windows & vue3

I don't know what I should do?

makc commented 1 year ago

the error says some func that wasm expects is not provided by js - this can be if wasm and js out of sync. but for me it works fine? so they either fixed it, or your browser cached something. try opening it in private window.

wwwouter commented 1 year ago

I tested it again and this specific error is gone.

Although I'm not able to load any .ifc file, because I'm getting different errors:

image image
Autet commented 1 year ago

Great, thanks

DoisKoh commented 1 year ago

image

windows & vue3

I don't know what I should do?

I have the same issue but I'm using Vite.

protectione055 commented 1 year ago

I installed the same version of the dependency as the tutorial at the beginning and ran into the same problem. After updating the dependency to the latest version the problem was solved.

tptspe commented 10 months ago

@protectione055 I have same issue in my gatsby project even though I updated all dependencies.

Here is my details https://github.com/emscripten-core/emscripten/issues/20119

Can you tell me what I am wrong? Thanks