【问题标题】:How can I push my ReactJS gh-pages without error?如何正确推送我的 ReactJS gh-pages?
【发布时间】:2020-11-14 01:18:41
【问题描述】:

谁能告诉我为什么我的反应页面没有部署在 github 页面上。每当我尝试打开它时,它都会显示 404 错误页面,但是该应用程序在我的本地计算机上运行良好,没有任何错误或警告。我更新了 package.json 并安装了 gh-pages 作为开发依赖项。这是 my repo

【问题讨论】:

    标签: javascript reactjs github github-pages


    【解决方案1】:

    package.json 中的主页未设置为https://pokedex-tan.vercel.app/

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

    【讨论】:

      猜你喜欢
      • 2015-06-04
      • 1970-01-01
      • 2018-02-02
      • 2016-10-07
      • 1970-01-01
      • 2013-12-23
      • 1970-01-01
      • 2020-03-13
      • 1970-01-01
      相关资源
      最近更新 更多