构建React应用后显示空白页

时间:2020-09-29 13:05:13

标签: reactjs npm-build

在阅读了一些堆栈解决方案后,例如添加“ homepage”:”。在package.json()文件中,我仍然无法通过此操作。

npm run build之后,在我的项目文件夹中生成了一个构建文件夹。当我打开构建文件夹并尝试运行index.html文件时,它显示空白页。 尽管npm run build绝对可以。

To ignore, add // eslint-disable-next-line to the line before.

File sizes after gzip:

  282.86 KB  build/static/js/main.108757a0.js
  3.1 KB     build/static/css/main.8e671453.css```


**Please help me out, I'm a beginner in react and these things make me worry too much **
 

0 个答案:

没有答案