首页 > 解决方案 > 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)

标签: reactjsbuildnetlifyvercelreact-boilerplate

解决方案


推荐阅读