园子的博客后台升级到 angular 19 后,build 成功,但部署后浏览器访问时却报下面的错误
Dynamic require of "./chunk-6SFKHDOK.js" is not supported
请问如何解决这个问题?
微信里点“发现”,扫一下
二维码便可将本文分享至朋友圈。
通过 github 上 issue 中的评论知道了原因:
We had the same issue, increasing the minimum versions in .browserslistrc solved this.
将 .browserslistrc 文件中的 Chrome >= 61 改为 Chrome >= 70 就解决了。
.browserslistrc
Chrome >= 61
Chrome >= 70