GET https://neeerajtk.github.io/news-aggregator/newspaper/static/css/main.e7920e9a.chunk.css net::ERR_ABORTED 404
GET https://neeerajtk.github.io/news-aggregator/newspaper/manifest.json 404
出现以上错误。 我在github页面上部署了一个react应用程序,并且在访问它时在控制台上显示了此错误。 唯一加载的是选项卡标题。 我已经使用npm安装了github页面,并添加了脚本:
"predeploy": "npm run build",
"deploy": "gh-pages -d build"
设置主页,进行构建和部署,并且部署消息成功。