Difficulty in deploying react app on GitHubPages #23770
-
Repo: https://github.com/Karan-Ghatt/new-app I’m having some difficulty in deploying a simple react app. So I manage to get the page hosted through GitHubPages, but my JS. doesn’t seem to run! There’s meant to be a whole visual element on the page with buttons, but alas, they are no where to be found. I’ve check the .chunks.js in static/.js files referenced in the index.html file, and it seems to have my code for the JS elements, but it again, it dose not appear on the page. It’s like 2am and I could really do with some help please!! Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi, @Karan-Ghatt! It looks like the trouble here might be due to some broken URLs in your HTML. For example, this line of your Karan-Ghatt/new-app/blob/293841b92b6bb0c1ffd5a2aaf918a82e6728d504/index.html#L11
Your site is published at As a side note, I uncovered this trouble by looking for 404s in the Chrome developer console, while viewing your published site. If you’re not familiar with the Chrome developer console, I’d highly recommend checking it out, as it’s a great tool for debugging exactly this sort of trouble: Google DevelopersConsole Overview | Tools for Web Developers | Google...The main uses of the Chrome DevTools Console are logging messages and running JavaScript. I hope that helps! Friday |
Beta Was this translation helpful? Give feedback.
-
Thank you for the insight!! Could you help me whats wrong with the URLs above, what is it that makes them broken? I apprentice this may be pretty simple stuff, so thanks again for your time! |
Beta Was this translation helpful? Give feedback.
Hi, @Karan-Ghatt!
It looks like the trouble here might be due to some broken URLs in your HTML. For example, this line of your
github.comindex.html
file includes the valuehref="/Karan-Ghatt/new-app/manifest.json"
:Karan-Ghatt/new-app/blob/293841b92b6bb0c1ffd5a2aaf918a82e6728d504/index.html#L11