react-gh-pages icon indicating copy to clipboard operation
react-gh-pages copied to clipboard

Page not found

Open ilyamordasov opened this issue 4 years ago • 2 comments

I've done according your instruction, but everything is pushed to github repo but nothing to github pages. I added "homepage":"..." to package.json, and got nothing. But my terminal said

im@im:~/Desktop/figma-app$ npm run deploy

> [email protected] predeploy /home/im/Desktop/figma-app
> npm run build


> [email protected] build /home/im/Desktop/figma-app
> react-scripts build

Creating an optimized production build...
Compiled successfully.

File sizes after gzip:

  39.39 KB  build/static/js/2.a88a2725.chunk.js
  777 B     build/static/js/runtime-main.a0ad3164.js
  648 B     build/static/js/main.e84e2243.chunk.js
  556 B     build/static/css/main.d1b05096.chunk.css

The project was built assuming it is hosted at /figma/.
You can control this with the homepage field in your package.json.

The build folder is ready to be deployed.

Find out more about deployment here:

  bit.ly/CRA-deploy


> [email protected] deploy /home/im/Desktop/figma-app
> gh-pages -d build

Username for ...
Password for ... 
Published

ilyamordasov avatar May 07 '20 10:05 ilyamordasov

check this link Check the GitHub Page sources, and update according to above link. Branch -> gh-pages folder -> root

It may possibly be help you out!! 🙃🙃

lokesh-kurre avatar Jun 01 '21 10:06 lokesh-kurre

Did you find the solution to this issue?

catherineisonline avatar Apr 19 '22 08:04 catherineisonline

@lokesh-kurre the previous issue you linked solved my problem, but why isn't this mentioned in the README?

SethCram avatar Oct 09 '22 20:10 SethCram

Thanks @lokesh-kurre for providing that potential solution to people.

I added it to the README a few minutes ago after reading from several people that that step made the difference between a working deployment and a non-working deployment for them.

Here's the newly-added section: https://github.com/gitname/react-gh-pages#8-configure-github-pages

gitname avatar Nov 28 '22 00:11 gitname

For those of you still running into a "Page not found" issue, if you include a link to your repo, I'll take a look at it.

gitname avatar Nov 28 '22 00:11 gitname