【问题标题】:After the build, we are getting argon-dashboard-react/static/js/main.e8eb0f76.chunk.js net::ERR_ABORTED 404 (Not Found)构建后,我们得到 argon-dashboard-react/static/js/main.e8eb0f76.chunk.js net::ERR_ABORTED 404 (Not Found)
【发布时间】:2019-12-09 19:44:48
【问题描述】:

我正在为我的应用程序使用来自creative-tim URL 的argon-dashboard-react 免费模板:https://demos.creative-tim.com/argon-dashboard-react/#/admin/index,一切正常,但是当我构建时,所有 URL 都与 /argon-dashboard-react 一起出现, 预期的 URL 结构 /static/js/main.e8eb0f76.chunk.js,输出:/argon-dashboard-react/static/js/main.e8eb0f76.chunk.js

请参阅我的屏幕截图以获得更多说明 本地路径 生产路径

【问题讨论】:

    标签: javascript reactjs build


    【解决方案1】:

    要解决这个问题,请从 package.json 文件中删除 homepage 属性,然后再次运行 build 命令(同样,在此之前删除旧的 build)。

    它对我来说很好用

    【讨论】:

      猜你喜欢
      • 2021-11-23
      • 2019-06-07
      • 1970-01-01
      • 2020-05-07
      • 2020-04-13
      • 2022-12-17
      • 2020-03-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多