Blank page when deploying react site to github pages with custom domain name #55007
-
Select Topic AreaQuestion BodyHello. I'm trying to deploy this repo: https://github.com/oDragon/developer-portfolio to github pages with the custom domain name: chenlarry.com. Here are my DNS configurations: And here are the settings for my github pages: If you visit chenlarry.com (or alternatively, https://odragon.github.io/developer-portfolio/), you'll find a blank page. I know that this question has been asked multiple times, but none of the answers have fixed my issue. I've tried changing the "homepage" attribute in my package.json file to various links, none of which worked (weirdly, my package.json file did not contain a "homepage" attribute originally). I've also created a CNAME file with the text "chenlarry.com" in it. Any help is appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 15 replies
-
In your index.html you have this link: I think you need a Might help, it's worth a try. |
Beta Was this translation helpful? Give feedback.
-
We built the site and deployed it to GitHub pages via gh-pages npm package, but our build folder's index.html file is completely blank, like there are contents in the file but the root element is empty. Thus, I too receive a blank page. Can you help? with it and what's the refference to jsx file you are talking about. I have a feeling that this reference thing is causing our problem |
Beta Was this translation helpful? Give feedback.
-
https://github.com/manjeerasuggula/my-new-website i am also getting the blank page |
Beta Was this translation helpful? Give feedback.
This comment was marked as spam.
This comment was marked as spam.
-
Hey I seem to be having a similar issue. But I dont have a vite.config.js, is this necessary? |
Beta Was this translation helpful? Give feedback.
In your index.html you have this link:
<script type="module" src="/src/index.jsx"></script>
I think you need a
.
in front of the slash. So changing it to:<script type="module" src="./src/index.jsx"></script>
Might help, it's worth a try.