React website that works on my local computer, doesn't work after I generated a Github link for it. How do I fix the problem? #154312
Replies: 4 comments
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Hi @Snamude , From your description, it sounds like your React project is working locally but not rendering anything when deployed via the GitHub Pages link. A blank white screen with only the title typically indicates that the app failed to load due to a configuration or path issue. Here are a few things to check:
"homepage": "https://snamude.github.io/plantshopapp"
npm run build And then deploying the build folder using a tool like gh-pages. If you haven’t already, install it: npm install gh-pages --save-dev Then, add these scripts to your package.json: "scripts": {
"predeploy": "npm run build",
"deploy": "gh-pages -d build"
} Finally, run: npm run deploy
If you can provide any specific error messages from the browser console or deployment logs, I’d be happy to take a closer look. Hope this helps you meet your deadline. Let us know how it goes! |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Above solutions didn't work. I found solution on my own. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
Hi,
I made sure all the codes work locally on my computer before I uploaded/sent them to my Github. However when I turned the product listing store repository into a link, for some unknown reason the product listing, the cart, and Navbar aren't shown when I click on the Github link that was generated for it. I'm getting a blank white screen. Only thing showing is the title of my website. Attached is a screenshot of what is shown when I click on the Github link that was generated for my react project repository. This is a link to the product listing of plants, Navbar, and cart repository https://github.com/Snamude/plantshopapp.git
Please help me fix this problem before 11.59pm EST tonight because this React project is due tonight for a React course I'm taking. I don't know why its not working because all the codes work on my local computer. I thank you in advance.
Sincerely,
Stella
Beta Was this translation helpful? Give feedback.
All reactions