umi+antd打包部署之后,使用IP、域名访问提示:
vendors.68a7c9b0.async.js:1
Uncaught SyntaxError: Unexpected token '<' (at vendors.68a7c9b0.async.js:1:1)
umi.c458e4f5.js:1
Uncaught (in promise) ChunkLoadError: Loading chunk 0 failed.
(missing: http://IP/vendors.68a7c9b0.async.js)
at Function.i.e (umi.c458e4f5.js:1:5964)
at component (umi.c458e4f5.js:1:1088515)
at y.resolve (umi.c458e4f5.js:1:41009)
at r.value (umi.c458e4f5.js:1:40546)
at new r (umi.c458e4f5.js:1:40351)
at ja (umi.c458e4f5.js:1:1407482)
at tc (umi.c458e4f5.js:1:1425044)
at Nc (umi.c458e4f5.js:1:1463479)
at Rl (umi.c458e4f5.js:1:1455159)
at Nl (umi.c458e4f5.js:1:1455084)
但是在localhost本地访问下项目又显示正常
初步判断为本地网络问题