reactjs - react-boilerplate 代码库的生产部署抛出错误并显示空白页
问题描述
React-boilerplate 在部署到 netlify 时会在生产中引发错误。这只发生在生产环境中。
我试图在本地进行构建并加载 index.html 文件以进行测试,但出现以下错误。
Failed to load resource: the server responded with a status of 404 (Not Found)
npm.chakra-ui.8cc546554cf3052bf991.chunk.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
npm.core-js.a82f6c631796108b7cb1.chunk.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
npm.moment.b3695d6e3dd0f7c7a18b.chunk.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
npm.ethersproject.c0e80bb009cb73e14d08.chunk.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
npm.react-app-polyfill.2f4229475bedddac6a47.chunk.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
npm.ethereumjs.ab87162c81543f74a27c.chunk.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
npm.web3-eth-ens.53e5106e93a97e337780.chunk.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
解决方案
推荐阅读
- r - 如何使用 cor() 函数计算两个变量与第三个变量的组合相关性?
- angular - 如何对私有函数内的按钮的单击事件进行单元测试?
- single-sign-on - 使用 KNOX 的 NiFi SSO:请求证书时出错
- python-3.x - 在 Tkinter/Pyqt 中是否有类似于 Delphi 的字符串网格的东西?
- javascript - 我将输入类型的 id 作为唯一 id,那么我怎样才能将这些唯一 id 输入到 javascript 中?
- python - 将数据框写入文件时如何进行排序?
- java - 如何解决“IO-fout: Invalid connection string format, a valid format is: "host:port:sid"” 错误?
- python - 如何将python输出写入excel表格?
- c# - 将带有令牌身份验证/授权的 ApiController 添加到现有的 ASP.NET MVC 项目
- python - Keras 用于多任务学习神经网络的顺序与功能 API