ThatOpen / engine_web-ifc

Reading and writing IFC files with Javascript, at native speeds.
https://thatopen.github.io/engine_web-ifc/demo
Mozilla Public License 2.0
629 stars 198 forks source link

[Bug]: Unexpected token '<' #1051

Closed Wizer21 closed 1 month ago

Wizer21 commented 1 month ago

What happened?

Hello !

I'm working on a vite/vue.js project where I load IFC models into Three.js, and this part work fine.

But I'd like to add these two lines in my vite config so my application can use 'SharedArrayBuffer' image

And I get the following error image un expected token

Versions vue 3.5.4 vite 5.4.4 web-ifc 0.0.58 @thatopen/components 2.2.11

Version

0.0.58

What browsers are you seeing the problem on?

No response

Relevant log output

No response

Anything else?

No response

beachtom commented 1 month ago

it looks like your server is returning an error when web-ifc tries to fetch the worker javascript - you can look in the network console about this

beachtom commented 1 month ago

No response heard so closing