Replies: 3 comments 5 replies
-
Some things to check:
|
Beta Was this translation helpful? Give feedback.
4 replies
-
install gitHub pages by running the code below in ur terminal |
Beta Was this translation helpful? Give feedback.
1 reply
-
If none of Above helps and you are using BrowserRouter then please set this change the app name to you website path, This is very much important |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Bug
Body
Hello GitHub Community,
I'm currently facing an issue while deploying my React app on GitHub Pages, and I'm seeking some guidance to help resolve it.
Issue Summary:
I have followed the recommended steps to deploy my React app on GitHub Pages. I've pushed the contents of the build folder to the gh-pages branch, but when I visit the deployed site, I consistently encounter a "404 - Page Not Found" error.
Steps Taken:
I ran the npm run build command to generate the optimized build files.
I pushed the contents of the build folder to the gh-pages branch as instructed.
I can see the files in the GitHub repository, but the live site isn't working as expected.
What I've Checked:
The paths in the index.html file seem correct, and the assets are present.
I've tried to test the app locally using http-server, but I'm still experiencing the same issue.
I've checked for any .nojekyll files as mentioned in the documentation, but none exist in the repository.
Repository Link: https://github.com/Encoded99/new
Request for Assistance:
I'm reaching out to the GitHub Community to seek assistance in resolving this issue. I've gone through various troubleshooting steps, but I'm unable to pinpoint the exact cause of the "404 - Page Not Found" error. If anyone has encountered a similar issue or has any suggestions on what might be causing this problem, I'd greatly appreciate your input.
Beta Was this translation helpful? Give feedback.
All reactions