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

Could not load .glb assets #3610

Open
shunmian opened this issue May 17, 2024 · 0 comments
Open

Could not load .glb assets #3610

shunmian opened this issue May 17, 2024 · 0 comments
Labels

Comments

@shunmian
Copy link

shunmian commented May 17, 2024

Hi, I have tried to load .glb file to be used in react-three-fiber. It shows .glb assests cannot be found while it actually works in web app. Is there any webpack config I'm missing? Appreciate if can one can help.

Prerequisites

  • [X ] Using npm
  • [√] Using an up-to-date main branch
  • [√] Using latest version of devtools. Check the docs for how to update
  • [√] Tried solutions mentioned in #400
  • [√] For issue in production release, add devtools output of DEBUG_PROD=true npm run build && npm start

Expected Behavior

Should import .glb correctly

Current Behavior

uncaught Error: Could not load ../../../../assets/models/a.glb: fetch for "http://localhost:1212/assets/models/a.glb" responded with 404: Not Found

Your Environment

  • Node version : v18.17.0
  • electron-react-boilerplate version or branch : 26.2.1
  • Operating System and version : MacOS Sonamo 14.1
@shunmian shunmian added the bug label May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant