supermedium / aframe-react

:atom: Build virtual reality experiences with A-Frame and React.
https://ngokevin.github.io/aframe-react-boilerplate/
MIT License
1.42k stars 151 forks source link

Asset referencing bug #107

Open JP-Dorman opened 7 years ago

JP-Dorman commented 7 years ago

When referencing assets, adding a / to the start of src works fine on localhost but once it's bundled and hosted on a web server, it stops the scene from loading on firefox without any helpful warnings. It wasn't until after some head scratching that I opened the bundled project on google chrome and it showed me the 404 for my assets.

Not sure if this counts as an aframe-react bug or not but this is an issue that tripped me up for a while as a newbie, maybe a console warning would help out future learners?