I made a page using React and it was showing just fine two days ago, but today, and without making any changes myself, vite won’t show me my page.
I used to just run npm run dev
and vite would expose the page to the localhost, I’d just Ctrl+Click and my page would pop up in Chrome, working flawlessly with React+Router. But now it didn’t and it sent me to the default chrome error screen with the 404 message, telling me that localhost had no web page to display
There is indeed an index.html
file in my project, and while it’s under a src
folder, again, it used to work just fine earlier.
I’ve tried to look for answers online, but they all seem to relate to Netlify, Github pages or something called nginx that I’m not sure is within my project, I’m trying to run mine locally so the first two examples are out of the picture (at least for now)
I’ve uploaded the whole project to Github and I’d appreciate it if someone could have a look, or just tell me what it’s missing, since it seems like it’s a small easy problem, considering it was running fine earlier.