-
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
Deployed React website showing blank page #53
Comments
I had the same issue and found the solution on Stack Overflow (credit to Nigh7Sh4de). If you are going to use a custom domain, you need to remove the repository name from the homepage:
Note that this will no longer work while using the GitHub URL. I would add this to the README, but I have no idea how to do that |
YES. This and also make sure to set the source to the |
This works, Either its a bug which needs to be fixed or the documentation needs to be updated to skip updating homepage parameter for custom domain users. |
I tested different ways to deploy to gh pages and any works fine |
Hi everyone, sorry about the delay. I currently have a React app hosted by GitHub Pages at a custom domain and I used (at least roughly...) the technique in this tutorial to deploy it (both the initial deployment and subsequent updates). I'll look into this issue in the second half of this coming week. |
Hi, I have the same issue with my webpage https://github.com/olexiyc/sasa-petricic , I think I did everything right but it is blank https://olexiyc.github.io/sasa-petricic/ Can someone help me out? :D |
Hi @olexiyc, I looked at the source code of the web page you linked to and didn't see any React code. It looks like a plain HTML/CSS site to me. This repository is about deploying a React app; and this specific Issue is about doing so with a custom domain. Anyway, the web page does seem to me to be deployed correctly. I think the reason it's blank is that the Since the site isn't a React app, please refrain from posting about it in this Issue. I don't want the people who are subscribed to this Issue to be notified about unrelated stuff. I do have a suggestion for you, though. While you are experimenting with deployment, I recommend adding something permanently visible to the web page (e.g. some black text; i.e. |
Hello Everyone! I having the name issues. I asked all my peers and we can't figure it out. Was wondering if anyone of you can help me. Here is my repo: https://github.com/JosephVang099/e-com-test.git Thanks!! |
I'm having the same issue: https://sparklezjas.github.io/hookform/ Can anyone tell me what I'm doing wrong?! I went step by step through the GH tutorial. |
Hi @JosephVang099 , I took a quick look at your repo and noticed your I recommend creating a new repository (you can delete it later), going through the tutorial in this repository until you have successfully deployed a React app to GitHub Pages, then applying what you learn to this For future reference, here is the URL of the deployed React app: https://josephvang099.github.io/e-com-test/ |
Hi @sparklezjas , I visited your deployed React app and saw some 404 errors in the console:
I take this to mean the I took a quick look at the I think I have spotted the issue: The URLs the React app is using contain an "extra" Recommendation:
Please let us know what happens after you have done those things. |
I have the same problem, blank page... |
Hi @sparklezjas , since this comment does not involve a blank page, will you delete the comment and open a new Issue about it? That way, I will be able to comment on it without notifying the other people subscribed to this thread. |
Hi @sparklezjas , similarly, since the deployment process, itself, is not finishing, will you open a new Issue about this? I don't want the people subscribed to the current Issue (about a blank page and custom domains) to receive a notification about each reply on this topic. |
Hi @xpierroz , I see the blank page at https://pierrodbz.tech/ and I see the JS console contains the following 404 errors: I think the issue stems from the fact that the URLs contain a Looks to me like you updated the Please deploy again and report back. On a side note; in the |
Hello, thanks for the answer |
@xpierroz You're welcome. You can do it by running |
Hi there, I am having problems with my website. It will show a blank white screen despite following all the steps. Note that my LocalHost works completely fine when homepage is taken off Here is the repo: https://github.com/b3yund/awakening |
Hi @b3yund, thanks for including a link to your repo and screenshots of the JS console errors. I looked at your repo. Since your app uses client-side routing (i.e. React Router), I recommend applying one of the workarounds listed here: #104 (comment) |
I am getting blank page after deploying the react website successfully , I am not able to figure about this issue , Can some help me? |
Hi @SiddhiiDhamale, I looked at the |
I will close this GitHub Issue so its 12 participants don't keep receiving notifications about tangential issues. Here is a summary of the various issues reported in this GitHub Issue:
|
Hi there, I am getting blank page after deploying the react website successfully . I guess the issue is because of path mismatch but I'm not able to figure out solution to it. Can some help me? |
Hi @Siddharthbeniwal, I meant to lock this Issue from further comments, as I didn't want the other 12 participants to continue receiving notifications about (in some cases) tangential issues. I looked at the code in the repository referenced in your message and noticed it differs from that which |
I deployed my website and it was working fine using the GitHub URL. Once I added my custom domain the website stopped displaying and is now a blank page. When I
view page source
it shows theindex.html
file.My website : michaelmontagnese.com
My repository : https://github.com/mmont429/michael_website/
I have not found a solution to this issue that works yet.
The text was updated successfully, but these errors were encountered: