Problem With Deploy React App With Gh-pages

- 1 answer

I've got a problem with deploying my react app with gh-pages. I tried all guides from YT and those from the first site of Google. And my GitHub pages don't show an app still. link to my repo:

the question is Where is the problem? I didnt write smth in the code? How can I fix this? (I want to live preview on my react app by ghpages)



When you open your project site and do a full refresh with the developer tools of your browser enabled, you will see that all javascript and css references result in a 404. This is because all url all prefixed with maksymilianMroz.


where it should be

This is caused by the homepage property of your package.json file, as shown in the output of npm run build

enter image description here

If you adjust that property in the package.json your build will be fine.

  "name": "react-todo-app",
  "version": "0.1.0",
  "private": true,
  "homepage": "",