Error Deploying React App to GitHub Pages: Failed to load resource: the server responded with a status of 404
I created a React app using Vite and developed it locally in Visual Studio Code. After completing the project, I initiated a local Git repository and pushed the files to GitHub. I configured the deployment using the gh-pages package and added the necessary settings in package.json, including setting the base URL. However, when I deployed the app using npm run deploy
and accessed the live preview link on GitHub Pages, I encountered a blank white page with the following error in the console: