Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to get examples to work #151

Open
hchou-godaddy opened this issue Dec 19, 2022 · 2 comments
Open

unable to get examples to work #151

hchou-godaddy opened this issue Dec 19, 2022 · 2 comments

Comments

@hchou-godaddy
Copy link

Followed the instructions for the babylon demo folder. it says go to root folder to run npm install and then npm run start-babylon. Two browser tabs open up, but when clicking on any of the demo links get lots of compile error like this:

ERROR in ./packages/amazon-sumerian-hosts-babylon/src/Babylon.js/HostObject.js 8:0-64

Module not found: Error: Can't resolve '@babylonjs/core/Loading/sceneLoader' in '/Users/username/pp/amazon-sumerian-hosts/packages/amazon-sumerian-hosts-babylon/src/Babylon.js'

Are there some missing instructions?

@Krxtopher
Copy link
Contributor

Krxtopher commented Dec 23, 2022

@hchou-godaddy I just tried this myself and didn't experience any problems. Let's see if we can figure out what's different on your system.

What operating system are you using? (I'm on MacOS.)

Give this a try...

From the root folder of the repository, run git clean -xfd to remove all old build files.

From the root folder of the repository, run npm install. Confirm that you don't see any errors or warnings in the output.

From the root folder of the repository, run npm run start-babylon. Confirm that you don't see any errors in the output. Leave this terminal window open and running.

In the browser tab for the demos, see if you can successfully run the "Hello World" demo. If the demo gets stuck on the "loading" screen, open the browser console and look for errors. (If this happens it's usually because you've failed to add your Cognito Identity Pool ID to the application's code.)

@trusktr
Copy link

trusktr commented Feb 17, 2024

Hello! You can try this branch which removed build tools, and runs all examples as plain JavaScript right in the browser:

This is simpler for end users so they don't encounter issues, plus will be easier for maintainers without having to worry about build tools breaking.

Furthermore, TypeScript support is improved in this branch that is continued from the previous one, in case you need type support for the Babylon host code.

#190

I am currently investigating the Babylon 5/6 bug, then we can merge these changes. If you are using Three.js, no issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants