gitname / react-gh-pages

Deploying a React App (created using create-react-app) to GitHub Pages
6.6k stars 924 forks source link

Blank website after deploying with gitpages #156

Closed Catherine-Ge closed 1 year ago

Catherine-Ge commented 1 year ago

Hi everyone, this is my first time trying to deploy something. I'm trying to deploy using the build branch because my main branch has some files which I created before writing this website with React so I guess that maybe a bit messy. Here is the website: https://catherine-ge.github.io/Fun-Facts/ Here is my repo: https://github.com/Catherine-Ge/Fun-Facts/tree/build

gitname commented 1 year ago

Hi @Catherine-Ge, the first thing that jumps out at me is that the package.json file in the current repository does not have a homepage property. I didn't look at any other files. I recommend going through the tutorial in this repo as-written (you can create a new repository for that, and then delete it afterward) and then apply that experience to the current Fun-Facts repository.

gitname commented 1 year ago

Also, the website is non-blank when I visit it.

image

I like the color scheme!