Getting error while loading .ifc file

Hi,

I am trying to load ‘.ifc’ model in the three.js but model is not loading. When I am checking the error on console and network then I noticed that ‘web-ifc-mt.worker.js’ is not loading in the network. and also getting warning on console.

console warning :-

Network tab(‘web-ifc-mt.worker.js’ is not loading) : -

Please suggest me what am I missing.?

Status 404 always refers to a file being missing, or not present at the given URL. Your program was able to communicate with the server, but the server returned “code 404”.

To be precise: you didn’t even get as far as “loading” the model, because the URL you gave the program didn’t point to a file containing your model.

how are you running your dev server for the project?

1 Like

On the ThatOpen IFC repo there is a link to the build.

https://thatopen.github.io/engine_web-ifc/build.zip

In there is the source file that you can’t seem to load.. perhaps you can copy it out of the build.zip into your project tree at the root, so the library can find it.

web-ifc-mt.worker.js

Or find that file in your existing npm install of it
Assuming you’re using this: GitHub - ThatOpen/engine_web-ifc: Reading and writing IFC files with Javascript, at native speeds.
installed via “npm install web-ifc”

Thanks for the reply.
I have added this file at respective location but now I am getting others error.

Yeah at this point, i don’t really know. we might need to reproduce it in a jsfiddle or codepen…

Or you could get their example to work first… and then work backwards from that.

I am running code on IIS.