Live React应用程序与本地主机显示不一样?

问题描述

因此,我在localhost上的react应用程序运行正常,在控制台中没有出现任何错误,并且所有功能均正常工作。

运行npm run deploy并查看实时版本后,控制台中出现以下错误

Failed to load resource: the server responded with a status of 404 () portfolioSite/manifest.json:1


Manifest: Line: 1,column: 1,Syntax error.

portfolioSite/:1 Uncaught SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at showNeg.js:241
    at XMLHttpRequest.onDefaultReadyStateChangeHandler (showNeg.js:311)

我尚未对npm run deploy进行的构建进行任何更改。

当我检查显示内容flex to display: none !important;更改时,实时构建似乎也缺少我的div之一。

不确定这是否与控制台中的上述错误有关?

谁能阐明我为什么会得到这些错误

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)