简体   繁体   English

如何无误地推送我的 ReactJS gh-pages?

[英]How can I push my ReactJS gh-pages without error?

Can someone please tell me why my react page is not deploying on github pages.有人可以告诉我为什么我的反应页面没有部署在 github 页面上。 Whenever I try opening it, it shows a 404 error page, however the app works perfectly fine on my local machine without any error or warning.每当我尝试打开它时,它都会显示 404 错误页面,但是该应用程序在我的本地计算机上运行良好,没有任何错误或警告。 I updated my package.json and also installed gh-pages as a dev dependency.我更新了我的 package.json 并且还安装了 gh-pages 作为开发依赖项。 This is my repo这是我的回购

The homepage in the package.json isn't set to https://pokedex-tan.vercel.app/ package.json 中的主页未设置为https://pokedex-tan.vercel.app/

Try changing "homepage": "http://canaryGrapher.github.io/pokedex", to "homepage": "https://pokedex-tan.vercel.app/",尝试将"homepage": "http://canaryGrapher.github.io/pokedex",更改为"homepage": "https://pokedex-tan.vercel.app/",

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM