I am receiving an error in my console log
CodePudding user response:
it seems like your need to open your HTML file in a localhost environment like serve , nodejs , xampp or etc because when you drag or open this HTML file to the browser it loaded with file:// protocol and aframe can't load assets, etc with this protocol
CodePudding user response:
You would want to read the Aframe documentation before starting to work with it:
Use a Local Server
For the options below, we should develop projects using a local server so that files are properly served. Options of local servers include:
Downloading the Mongoose application and opening it from the same directory as your HTML file.
Running python -m SimpleHTTPServer (or python -m http.server for Python 3) in a terminal in the same directory as your HTML file.
Running npm install -g live-server && live-server in a terminal in the same directory as your HTML file.
Once we are running our server, we can open our project in the browser using the local URL and port which the server is running on (e.g., http://localhost:8000). Try not to open the project using the file:// protocol which does not provide a domain; absolute and relative URLs may not work.