部署到github页面后反应项目为空白

时间:2020-10-18 07:00:40

标签: reactjs github react-router github-pages

尝试拉出已部署的React网站时

空白页。该站点在本地工作正常。站点使用react-router。我已经尝试了所有方法来尝试使它正常工作,但仍然无法解决,任何帮助将不胜感激。

我只能猜测的问题是控制台错误,但是我很难弄清它们的含义。控制台错误在下面列出

Not allowed to load local resource: file:///C:/Users/19496/my-portfolio/src/App.css
2.cd1c2086.chunk.css:1 Failed to load resource: the server responded with a status of 404 ()
main.5c8c6e6f.chunk.css:1 Failed to load resource: the server responded with a status of 404 ()
2.a395e7df.chunk.js:1 Failed to load resource: the server responded with a status of 404 ()
main.bc5be623.chunk.js:1 Failed to load resource: the server responded with a status of 404 ()
/C:Users//favicon.ico:1 Failed to load resource: the server responded with a status of 404 ()
manifest.json:1 Failed to load resource: the server responded with a status of 404 ()
manifest.json:1 Manifest: Line: 1, column: 1, Syntax error.
(index):1 Not allowed to load local resource: file:///C:/Users/19496/my-portfolio/src/App.css
manifest.json:1 Failed to load resource: the server responded with a status of 404 ()
2.cd1c2086.chunk.css:1 Failed to load resource: the server responded with a status of 404 ()
main.5c8c6e6f.chunk.css:1 Failed to load resource: the server responded with a status of 404 ()

0 个答案:

没有答案