Hi Team,
Here is the link to the Netlify deploy: https://my-project-basketball-score.netlify.app/
And the link to my github repo: GitHub - GitHub - upadhyayarti14/Baskteball-scoreboard: My personal project · GitHub
This is a build from scrimba, it worked there, it works on codepen/local server/Visual Studio too but for some reason it is not loading javascript here on Netlify.
Could you assist ?
Thank you.
@upadhyayarti14 The issue is very simple.
Your page tries to include:
That file does not exist:
https://my-project-basketball-score.netlify.app/index.js
See:
@ayush1 You are using Vite, so your issue is the same as many others using Vite.
You haven’t read or understood the applicable documentation for Vite.
Vite isn’t magic and it won’t work with whatever random project structure you throw at it.
You should read the Vite Static Asset Handling Documentation , in particular the section concerning the Public Directory .
Note: Anyone else encountering this thread that is using Vite and has an issue with images, favicons, or _redirects files (or other s…