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

RuntimeError when following the Hello World tutorial

Open dankollar opened this issue 3 years ago • 11 comments

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

dankollar avatar Aug 22 '22 16:08 dankollar

::take

aka-blackboots avatar Nov 28 '22 11:11 aka-blackboots

🟢🟢🟢

::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!

agviegas avatar Nov 28 '22 11:11 agviegas

::drop

aka-blackboots avatar Nov 28 '22 11:11 aka-blackboots

🟢🟢🟢

::drop

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

agviegas avatar Nov 28 '22 11:11 agviegas

::take

rrdls avatar Dec 06 '22 20:12 rrdls

🟢🟢🟢

::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!

agviegas avatar Dec 06 '22 20:12 agviegas

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/");

rrdls avatar Dec 06 '22 21:12 rrdls

::done

agviegas avatar Dec 12 '22 13:12 agviegas

🟢🟢🟢

::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).

agviegas avatar Dec 12 '22 13:12 agviegas

::expense::112800

rrdls avatar Dec 12 '22 16:12 rrdls

🟢🟢🟢

::expense::112800

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

agviegas avatar Dec 12 '22 16:12 agviegas