【问题标题】:Create React App is throwing "Loading chunk # failed" errorCreate React App 抛出“Loading chunk # failed”错误
【发布时间】:2019-07-30 09:32:34
【问题描述】:

我正在使用npm run build 构建CRA App,然后当我尝试部署它或使用serve build/ 时出现以下错误。

Error: "Loading chunk 1 failed.
(error: http://localhost:5000/admin/static/js/1.d30b6723.chunk.js)"

react-dom.production.min.js:4406
Unhandled promise rejection Error: "Loading chunk 1 failed.
(error: http://localhost:5000/admin/static/js/1.d30b6723.chunk.js)"

es6.promise.js:145

新反应,我该如何解决?使用Core UI 作为我的模板。

控制台中的网络出现 404。

【问题讨论】:

    标签: reactjs webpack create-react-app


    【解决方案1】:

    我知道这已经晚了,但我认为这是您的 package.json 文件中的主页和范围的问题。大多数情况下它没有设置,所以你的构建无法找到 js 文件。

    【讨论】:

      猜你喜欢
      • 2019-05-11
      • 1970-01-01
      • 2020-04-24
      • 2021-09-27
      • 2021-06-17
      • 1970-01-01
      • 2021-04-27
      • 2021-04-28
      • 1970-01-01
      相关资源
      最近更新 更多