-
Notifications
You must be signed in to change notification settings - Fork 924
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blank Page after deployment #159
Comments
Yes facing the same issue. Hope we'll get a reply... |
I am facing the same issue, I think it is caused by the React Router, I have deployed this same repo using gh-pages without react router, now I decided to update it and viola, blank page and 404s |
Same issue here. I have followed the instructions but after deploy my user site, it shows only a blank page. |
Hey guys! Good news! I found the issue #152 and after ran "npm run build" and then "npm run deploy" the site has been deployed succesfully. Therefore is not a routing error but a build one. Hope it helps. My site is now running as expected. |
Hi, So, I just tried it again, still the same issue, #152 mentioned that |
Hey! I'm not using react router, maybe that could be the reason. |
Hello! I have added react router to my project to try new things and it is giving me blank page. So going seems to be related to the project structure or how the react-gh-pages handles that routing. I will investigate more :( |
Alright, I have tried #132 structure by adding Browser Router to Index.js and not app.js, but it didn't work, that might be a good place to start as the PR is about react router, which is evidence that people have used it with react router :) |
Hi, I have found that the cause of routing not working in GitHub Pages is that it does not allow browsing history. However, if you implement HashRouter instead of BrowseRouter, it works.
Hope it helps! |
This works, thanks 🫱🏾🫲🏾 |
Glad it works! |
Thanks a lot! Fixed mine too. 😁 |
Facing Same Issue, my old build had no router at all, but after adding react router, whoosh |
Glad it worked out! |
Thank you very much, was stuck here since 2 days, read countless articles yet nothing worked, this worked...!!! |
Worked for me too! |
I have the same problem but I'm just using html, css, and js. sometimes it shows me the content of the readme file |
After, i git clone my repository in another PC and make some changes on the code and run "npm run deploy" i saw blank page.
I tried everything and read the previous issues but could not find the solution.
The website works in local.
Category
Which of these applies to you? (Select all that apply)
Links
Tell us where we can find your code and your GitHub Pages site:
Everything else
The console error:
The homepage property:
The blank page:
...
The text was updated successfully, but these errors were encountered: