Skip to content

Github pages wont deploy correctly only populates blank screen #52368

Discussion options

You must be logged in to vote

Take a look at the index.html on your gh-pages branch. Its body is basically empty:

<body> <div id="root"></div> <script src="/App.79369579.js"></script> </body>

I assume that the script is supposed to populate the document, but it can't be loaded because there's an incorrect absolute URL (starting with /). App.79369579.js exists in your repository, but it's deployed to https://morganwestcoding.github.io/morgan-west-portfolio/App.79369579.js, not https://morganwestcoding.github.io/App.79369579.js (where the <script> tag tells the browser to look). You'll need to either make the URL relative (so it works no matter under which path your site is deployed), or fix the base of the path.

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
3 replies
@morganwestcoding
Comment options

@morganwestcoding
Comment options

@airtower-luna
Comment options

Answer selected by morganwestcoding
Comment options

You must be logged in to vote
3 replies
@jyoung28
Comment options

@Fuzail22
Comment options

@Oscar142857
Comment options

Comment options

You must be logged in to vote
2 replies
@Leandro-pixel
Comment options

@prajaktakap00r
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
7 participants