ThatOpen / engine_components

MIT License
328 stars 129 forks source link

[Bug]: Error 404 when loading the .wasm #291

Closed lucas-vitrus closed 8 months ago

lucas-vitrus commented 8 months ago

What happened?

I have a Vite project, with the web-ifc.wasm on my public folder And I keep having the following error:

image
GET http://localhost:3000/project/web-ifc.wasm 404 (Not Found)

The web-ifc.wasm is located under /public folder.

image

I have already tried to change the wasm path, but doesn't seem to have affected anything, the issue remains same.

    const loader = new IFCLoader();
    loader.ifcManager.setWasmPath("./web-ifc.wasm");

Many thanks for the help!!

Version

latest

What browsers are you seeing the problem on?

Firefox, Chrome, Safari, Microsoft Edge

Relevant log output

No response

Anything else?

No response

HoyosJuan commented 8 months ago

Hey @lucas-vitrus!

It seems you're using web-ifc-three. That library is deprecated and is hard to find support for it as the efforts are put in openbim-components (this repository). The best I can tell you is to:

  1. Upgrade to components in order to get the latest and more up to date project.
  2. If you really need to stick with web-ifc-three, you can get the outdated docs from https://github.com/IFCjs/info.
  3. Try to find help in https://people.thatopen.com (our free community); but its hard as most people have already migrated to components.

Thanks a lot! I'm closing the issue.