ThatOpen / web-ifc-three

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

RuntimeError when following the Hello World tutorial #122

Open dankollar opened 2 years ago

dankollar commented 2 years ago

I'm going through the Hello World tutorial and I've literally just copied and pasted all the sample code. I'm just trying to get something up and running, but I'm getting the error in the attached picture when I open the project on my local host.

Here's what I've done:

  1. All the sample code is copied and pasted
  2. wasm files are in the root directory
  3. I'm trying to load an ifc from a folder called "models" which is in the root directory
  4. I've tried it on Chrome V104 and Edge V104
  5. I'm running the latest version of NodeJS

image

aka-blackboots commented 1 year ago

::take

agviegas commented 1 year ago

🟢🟢🟢

::take

Hi, @aka-blackboots! Thanks for taking this bounty! The due date is December 19, 2022 UTC.

If you need to submit some pull requests (PR) to complete the tasks, make sure that the last and only the last PR has a title that either starts with the bounty ID or is exactly the same as the bounty name. After the PR is merged, this bounty’s status will automatically changed to done.

If you do not need to make a PR, tell the manager @agviegas to run ::done command after your tasks is confirmed to be done.

Good luck!

aka-blackboots commented 1 year ago

::drop

agviegas commented 1 year ago

🟢🟢🟢

::drop

Hi, @aka-blackboots! Thanks for giving it a try! It’s now once again available for anyone to take.

rrdls commented 1 year ago

::take

agviegas commented 1 year ago

🟢🟢🟢

::take

Hi, @rrdls! Thanks for taking this bounty! The due date is December 27, 2022 UTC.

If you need to submit some pull requests (PR) to complete the tasks, make sure that the last and only the last PR has a title that either starts with the bounty ID or is exactly the same as the bounty name. After the PR is merged, this bounty’s status will automatically changed to done.

If you do not need to make a PR, tell the manager @agviegas to run ::done command after your tasks is confirmed to be done.

Good luck!

rrdls commented 1 year ago

Hello, @agviegas !

I tried to reproduce the reported error and this error is occurring because the user put the directory of the 'wasm' files incorrectly or put the wrong 'wasm' files. @dankollar reports that he put the wasm files in the root directory. Since he just copied and pasted the code, the directory used in 'Hello World' example is the following:

ifcLoader.ifcManager.setWasmPath("static/wasm/");

agviegas commented 1 year ago

::done

agviegas commented 1 year ago

🟢🟢🟢

::done

Hi, @rrdls! Thanks for your contributions! Please submit an expense to IFC.js Open Collective. Then, tell us the invoice number via the ::expense::_____ command (replace the _____ with the invoice number).

rrdls commented 1 year ago

::expense::112800

agviegas commented 1 year ago

🟢🟢🟢

::expense::112800

Hi, @rrdls! Thanks for the confirmation! We’ll proceed to review the expense. Once it’s approved, the payment will be scheduled.