在dva项目中,出现了Unhandled Rejection (Error): Loading chunk 0 failed.,解决方案


第一步: 在webpack里设置 publicPath: '/',

第二步: 在 public index.html 中 <script src="/index.js"></script> index.js前面加一个/

Unhandled Rejection (Error): Loading chunk 0 failed

 

Unhandled Rejection (Error): Loading chunk 0 failed

相关文章:

  • 2022-12-23
  • 2021-04-22
  • 2022-12-23
  • 2022-01-08
  • 2022-12-23
  • 2021-10-15
  • 2022-12-23
  • 2021-10-02
猜你喜欢
  • 2022-12-23
  • 2021-07-07
  • 2021-07-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案