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

web assembly instantiate Issue with threejs demo

Open Cuiyansong opened this issue 2 years ago • 3 comments

Hi I get an issue after loaded xxx.wasm file, i just try to use the demo in my application(in react/iframe environment, it is not iframe container issue), if anyone know what cause the issue and how to fix it?

I used the UMD style instead of ESM building. I Install three@135 and web-ifc-three@121 in my project for rollup package bundle.

Threejs IFC demo: https://threejs.org/examples/?q=ifc#webgl_loader_ifc

Errors: wasm-error

Cuiyansong avatar Feb 01 '23 07:02 Cuiyansong

After change xxxx.wasm file path to my local env instead of remote http value, the previous error is gone. But still have some other issue, maybe it is my mac m1 issue only, any ideas?

image

Cuiyansong avatar Feb 01 '23 09:02 Cuiyansong

Finally, I disable render it in IFrame, it indeed showing up, 🥂

So, it is the main issue only is loading the web-ifc.wasm from my local path instead of path https://threejs.org/examples/jsm/loaders/ifc/web-ifc.wasm

Just log the issue, please feel free to close it, thanks.

Cuiyansong avatar Feb 01 '23 09:02 Cuiyansong

I have the same error but I'm not using iframes. I'm using vite.

DoisKoh avatar May 10 '23 10:05 DoisKoh