Skip to content
Advertisement

Deployed React app to github pages is blank

I’m following instructions from https://github.com/gitname/react-gh-pages to deploy my react app to github pages.

At the link I’m getting a blank page though and a 404 error: Failed to load resource: the server responded with a status of 404 ()

My app works on local host

I searched around and its likely my homepage link that is wrong?

link to my repo: https://github.com/PatgioK/pathfindingvisualizer

link to the app: https://patgiok.github.io/pathfindingvisualizer/

here is my package.json:

JavaScript

Advertisement

Answer

Try specifying the branch in the deploy script by adding -b SomeBranchName in your packages.json.

so:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement