首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >将React应用程序部署到github页面时,manifest.json出现404个错误和问题

将React应用程序部署到github页面时,manifest.json出现404个错误和问题
EN

Stack Overflow用户
提问于 2020-10-30 04:36:39
回答 2查看 635关注 0票数 1

尝试部署到gitub页面时出现以下错误。用于创建应用程序的React应用程序。

代码语言:javascript
复制
GET https://wrecket.github.io/Wrecket/gmcb-react-conversion-new/static/css/2.038644eb.chunk.css net::ERR_ABORTED 404
manifest.json:1 GET https://wrecket.github.io/Wrecket/gmcb-react-conversion-new/manifest.json 404

相对较新的反应和解决不了它。这是我的package.json文件-

代码语言:javascript
复制
{
  "name": "gmcb-react",
  "version": "0.1.0",
  "private": true,
  "homepage": "https://github.com/Wrecket/gmcb-react-conversion-new/",
  "dependencies": {
    "@testing-library/jest-dom": "^4.2.4",
    "@testing-library/react": "^9.5.0",
    "@testing-library/user-event": "^7.2.1",
    "react": "^16.13.1",
    "react-animations": "^1.0.0",
    "react-dom": "^16.13.1",
    "react-indiana-drag-scroll": "^1.7.2",
    "react-router-dom": "^5.2.0",
    "react-router-hash-link": "^2.2.2",
    "react-scripts": "3.4.3",
    "react-transition-group": "^4.4.1",
    "save-dev": "0.0.1-security",
    "tachyons": "^4.12.0"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject",
    "predeploy": "npm run build",
    "deploy": "gh-pages -d build"
  },
  "eslintConfig": {
    "extends": "react-app"
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  },
  "description": "This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).",
  "main": "index.js",
  "devDependencies": {
    "gh-pages": "^3.1.0"
  },
  "author": "",
  "license": "ISC"
}

想要解决这个问题简直要疯了。

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2020-10-30 04:48:19

更改主页路径:"homepage": "https://yourusername.github.io/your-project-name",

票数 3
EN

Stack Overflow用户

发布于 2020-10-30 19:12:10

您在上面的答案中提到的主页链接中犯了一个错误,请尝试更正此错误并查看本文以更好地理解link

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64598869

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档