Skip to content
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 Load #17

Closed
ryanmarshallmc opened this issue Sep 17, 2018 · 13 comments
Closed

Blank Page Load #17

ryanmarshallmc opened this issue Sep 17, 2018 · 13 comments
Labels
react-router App uses React Router

Comments

@ryanmarshallmc
Copy link

Hi gitname -

Troubleshooted my way through your tutorial, thanks in advance for the help. Ran into an issue in that the page that loads is simply blank and white, although it does load the <title> correctly from my index.html. any ideas?

@AlanPedro
Copy link

Similar issue, did you manage to solve this?

@jonathonwpowell
Copy link

jonathonwpowell commented Nov 14, 2018

@ryanmchenry2 @AlanPedro I had a similar issue and managed to solve it. Make sure that the homepage defined in the package.json file is in the correct format http://{username}.github.io/{repo-name} otherwise the resources will fail to load as it will look in the wrong place.

@danceyoung
Copy link

I had a similar issue, but not solve it. The property homepage is also correct. @jonathonwpowell

@jonathonwpowell
Copy link

@danceyoung Have you checked the network tab on the browser Dev tools to see exactly where the requests are going? That is what tipped me off to what was happening

@danceyoung
Copy link

danceyoung commented Nov 28, 2018

wx20181128-094245 2x

repository :https://github.com/danceyoung/trycatch-intereactiveUIs @jonathonwpowell https://danceyoung.github.io/trycatch-intereactiveUIs/index.html thanks

@danceyoung
Copy link

@jonathonwpowell
Hi, i have fixed through the issue #3
setting react router's basename prop to repository name
thanks

@Ronnehag
Copy link

Ronnehag commented Jan 6, 2019

@jonathonwpowell
Hi, i have fixed through the issue #3
setting react router's basename prop to repository name
thanks

Awesome! I had my first router path set to '/' so it loaded the page without main content, but when I clicked the home link it all rendered. Changed it to my repo-name worked.

@LOGANLEEE
Copy link

Thank you i solved URL and router issue 👍

@Qubaish
Copy link

Qubaish commented May 27, 2019

Hi Guys,

I am also facing the same issue but in my case the resource are getting from root directory instead of repo-name.
e.g
https://qubaish/github.io/vendor.js /// not found

but ideally it should pick from this path
https://qubaish/github.io/repo-name/vendor.js // found

any suggestion what i am doing wrong ?

Thanks

@jonathonwpowell
Copy link

@Qubaish What is the value for "homepage" in your package.json file? Make sure it follows this format: https://{username}.github.io/{repo-name}

@Qubaish
Copy link

Qubaish commented May 28, 2019

@jonathonwpowell , I am using exactly same format: https://qubaish.github.io/news-feed/

@gitname gitname added the react-router App uses React Router label Aug 11, 2019
@Abbaskt
Copy link

Abbaskt commented Sep 2, 2019

@jonathonwpowell
Hi, i have fixed through the issue #3
setting react router's basename prop to repository name
thanks

Can you explain it more briefly

@ghost
Copy link

ghost commented Feb 25, 2020

I have a similar issue and I don't use react router at all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
react-router App uses React Router
Projects
None yet
Development

No branches or pull requests

9 participants