MozillaReality / hello-webxr

INACTIVE - Hello WebXR
https://mixedreality.mozilla.org/hello-webxr
MIT License
288 stars 88 forks source link

Room Load Failed On Initial Run: Uncaught Type Error: c.getName is not a Function #89

Closed shiyu99 closed 3 years ago

shiyu99 commented 3 years ago

Hi!

First, thank you all so much for this amazing open-source project! I tried to run "npm start" and open the project up in the browser after forking, cloning, and "npm install". However, the room wasn't loading. I tried the debugger tools and it showed "Uncaught Type Error: c.getName is not a Function" in the System.js file. The file hierarchy is [ node_modules-> ecsy/src -> RemoveDevTools-> System.js". image This is the call stack. image

Did anyone run into this problem before? If so, how did you solve it? Or did anyone have any advice?

Thanks a lot!

shiyu99 commented 3 years ago

My professor said it might be because I built it on a different Node / other dependencies version when I did "npm install" than the original Node version used by the project. Does anyone know what are the versions of the dependencies this original project is running on? Many Thanks!

feiss commented 3 years ago

Hi Shiyu,

Sorry for the delay in answering.

The problem was that the newest versions of the ECSY library break the app. It seems that the latest working version is 0.2.6. I've pushed the change, but you can do it yourself in your fork by editing package.json and replacing line 33 for this one: "ecsy": "0.2.6",

I hope you still get on time to the deadline!

feiss commented 3 years ago

closed via https://github.com/MozillaReality/hello-webxr/commit/c0924d1f29f6a1e388fae8f6db1e73e71634f7df

shiyu99 commented 3 years ago

Thank you so much Diego, this is very helpful!