DEV Community

Discussion on: How to deploy React App to GitHub Pages

Collapse
 
seamanb2k profile image
DigitalEmma

found this post useful, thank you...I have a question, after i have pushed my react app to github page, when i visit the url it displays blank with no error message shown, any pointers why i'm seeing this happen/
plus this is my first project in react.
Thank you

Collapse
 
yuribenjamin profile image
Ibrahim Ragab

Thanks, double check your process, if the same error occurred please share with me your github repo and I will help immediately

Collapse
 
nidhipal09 profile image
Nidhi pal

Hey, thanks for this very helpful tutorial. I am also getting a blank page. I did what was suggested (changing the router and link path as the github repo name) but still its not resolved.

repo link - github.com/Nidhipal09/covid-19-pro...
websited - nidhipal09.github.io/covid-19-proj...

can you pls help

Collapse
 
anabeatrizzz profile image
Ana Beatriz

I did the changes but a blank page is displayed yet.

Collapse
 
piruthuvi22 profile image
Piruthuvi

I got this same problem in the beginning. If you follow this tutorial correctly,then try this one.

Your home page route should be like this





<Route exact path="/your github repo name">



instead for

and in your rendered component change the




<Link to="/your github repo name">



instead for




<Link to="/">



And another important point you should consider. your github repo name must be valid name for example dots or space should not be in your repo name because that things conflict with URL.
Collapse
 
ultrax007 profile image
Rajat Sawarkar

this should be mentioned in the create-react-app docs, was so frustrated because of this simple code change, thanks alot mate @Piruthuvi

Collapse
 
learndeepak profile image
Learn-Deepak

Thanks a lot @Piruthuvi.