umi
umi copied to clipboard
[Bug] 不兼容ie
What happens?
使用向导创建一个最简单的应用。无法在ie上运行
edge浏览器正常
Mini Showcase Repository(REQUIRED)
Please provide a minimal reproduction then upload to your GitHub. 请提供 最小重现,并上传到你的 GitHub 仓库
How To Reproduce
Steps to reproduce the behavior: 1. 2.
Expected behavior 1. 2.
Context
- Umi Version:4.0.6
- Node Version:
- Platform: win 10 64
PS D:\workspace\project\axinfu\stream_web> pnpm run build
[email protected] build D:\workspace\project\axinfu\stream_web max build
Hello PRO info - Umi v4.0.12 error - jsMinifier: esbuild is not supported when there is ie in the targets, you can use jsMinifier: 'terser' fatal - Error: IE is not supported at getEsBuildTarget (D:\workspace\project\axinfu\stream_web\node_modules.pnpm@[email protected]_xnp4kzegbjokq62cajex2ovgkm\node_modules@umijs\bundler-webpack\dist\utils\getEsBuildTarget.js:31:11) at addCompressPlugin (D:\workspace\project\axinfu\stream_web\node_modules.pnpm@[email protected]_xnp4kzegbjokq62cajex2ovgkm\node_modules@umijs\bundler-webpack\dist\config\compressPlugin.js:55:70) at getConfig (D:\workspace\project\axinfu\stream_web\node_modules.pnpm@[email protected]_xnp4kzegbjokq62cajex2ovgkm\node_modules@umijs\bundler-webpack\dist\config\config.js:140:53) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Proxy.build (D:\workspace\project\axinfu\stream_web\node_modules.pnpm@[email protected]_xnp4kzegbjokq62cajex2ovgkm\node_modules@umijs\bundler-webpack\dist\build.js:52:25) at async Command.fn (D:\workspace\project\axinfu\stream_web\node_modules.pnpm@[email protected]_kbunkbeezhexeikqzjunp6h7bq\node_modules@umijs\preset-umi\dist\commands\build.js:144:17) at async Service.run (D:\workspace\project\axinfu\stream_web\node_modules.pnpm@[email protected]\node_modules@umijs\core\dist\service\service.js:270:15) at async Service.run2 (D:\workspace\project\axinfu\stream_web\node_modules.pnpm\[email protected]_llqjcapggugs3ytnsdohj4a7a4\node_modules\umi\dist\service\service.js:74:12) at async run (D:\workspace\project\axinfu\stream_web\node_modules.pnpm\[email protected]_llqjcapggugs3ytnsdohj4a7a4\node_modules\umi\dist\cli\cli.js:55:7) fatal - A complete log of this run can be found in: fatal - D:\workspace\project\axinfu\stream_web\node_modules.cache\logger\umi.log fatal - Consider reporting a GitHub issue on https://github.com/umijs/umi/issues ELIFECYCLE Command failed with exit code 1.
IE 兼容性问题 https://github.com/umijs/umi/issues/8930#issuecomment-1210281662
低浏览器相关的兼容,可以使用配置 legacy 有其他异常欢迎新开 issues 讨论