I have been creating my portfolio website and I decided to use THREE.js to make it a more unique and fun project. It seemed to work fine when I was checking the website from the text editor but when I committed all of the files across to GitHub so I could use it as a server, you are only able to see the HTML file appear on the site.
Image of what the site should look like
Image of what it looks like running on my GitHub repository
You can check my repository here: https://github.com/Cra1gyy/Alistair-s-Portfolio
Link to the live page: https://cra1gyy.github.io/Alistair-s-Portfolio/
I thought it was that the files weren’t linked properly but I couldn’t find anything that supported that as it working in the text editor anyway. I have also thought that maybe just committing all of the files across is what is creating the issue but I’m not sure.
I think the issue is that THREE.js isn’t recognized in the repo so it’s only displaying the HTML file because it doesn’t know what the THREE.js code is. I did install THREE.js into the project when I started, maybe it’s not transferred across to GitHub but I’m not really too sure. My final thought is that GitHub doesn’t support it so that’s why it’s not working. It’s my first time trying to make a website like this so I don’t know how to fix this kind of issue any information would be really appreciated.
Craigy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.