记录一个Circle CI出现的错误

错误信息:

bash 复制代码
 Why you should do it regularly: https://github.com/browserslist/update-db#readme
[success] [webpackbar] Webpack: Compiled with some errors in 1.62m
info  - Memory Usage: 1225.44 MB (RSS: 2033.32 MB)

 COMPRESSION ERROR 
esbuild minify failed, please change jsMinifier or upgrade target:
e.g. 
  jsMinifier: 'terser'
   or
  jsMinifierOptions: {
    target: ['chrome80', 'es2020']
  }
P.S. compatible with legacy browsers: https://umijs.org/blog/legacy-browser

fatal - Error: ERROR in 8591.6c6f6692.async.js
8591.6c6f6692.async.js from Terser plugin
Transform failed with 1 error:
8591.6c6f6692.async.js:4027:33: ERROR: Transforming async generator functions to the configured target environment ("chrome80", "es2015") is not supported yet
Error: Transform failed with 1 error:
8591.6c6f6692.async.js:4027:33: ERROR: Transforming async generator functions to the configured target environment ("chrome80", "es2015") is not supported yet
    at failureErrorWithLog (/home/circleci/esapiens/web/node_modules/esbuild/lib/main.js:1636:15)
    at /home/circleci/esapiens/web/node_modules/esbuild/lib/main.js:837:29
    at responseCallbacks.<computed> (/home/circleci/esapiens/web/node_modules/esbuild/lib/main.js:697:9)
    at handleIncomingPacket (/home/circleci/esapiens/web/node_modules/esbuild/lib/main.js:752:9)
    at Socket.readFromStdout (/home/circleci/esapiens/web/node_modules/esbuild/lib/main.js:673:7)
    at Socket.emit (node:events:390:28)
    at addChunk (node:internal/streams/readable:315:12)
    at readableAddChunk (node:internal/streams/readable:289:9)
    at Socket.Readable.push (node:internal/streams/readable:228:10)
    at Pipe.onStreamRead (node:internal/stream_base_commons:199:23)

ERROR in 8591.0bc7d371.async.js
8591.0bc7d371.async.js from Terser plugin
Transform failed with 1 error:
8591.0bc7d371.async.js:4027:33: ERROR: Transforming async generator functions to the configured target environment ("chrome80", "es2015") is not supported yet
Error: Transform failed with 1 error:
8591.0bc7d371.async.js:4027:33: ERROR: Transforming async generator functions to the configured target environment ("chrome80", "es2015") is not supported yet
    at failureErrorWithLog (/home/circleci/esapiens/web/node_modules/esbuild/lib/main.js:1636:15)
    at /home/circleci/esapiens/web/node_modules/esbuild/lib/main.js:837:29
    at responseCallbacks.<computed> (/home/circleci/esapiens/web/node_modules/esbuild/lib/main.js:697:9)
    at handleIncomingPacket (/home/circleci/esapiens/web/node_modules/esbuild/lib/main.js:752:9)
    at Socket.readFromStdout (/home/circleci/esapiens/web/node_modules/esbuild/lib/main.js:673:7)
    at Socket.emit (node:events:390:28)
    at addChunk (node:internal/streams/readable:315:12)
    at readableAddChunk (node:internal/streams/readable:289:9)
    at Socket.Readable.push (node:internal/streams/readable:228:10)
    at Pipe.onStreamRead (node:internal/stream_base_commons:199:23)

webpack compiled with 2 errors
    at handler (/home/circleci/esapiens/web/node_modules/@umijs/bundler-webpack/dist/build.js:82:79)
    at finalCallback (/home/circleci/esapiens/web/node_modules/@umijs/bundler-webpack/compiled/webpack/index.js:62945:32)
    at /home/circleci/esapiens/web/node_modules/@umijs/bundler-webpack/compiled/webpack/index.js:62962:13
    at Hook.eval [as callAsync] (eval at create (/home/circleci/esapiens/web/node_modules/@umijs/bundler-utils/compiled/tapable/index.js:1:7682), <anonymous>:35:1)
    at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/circleci/esapiens/web/node_modules/@umijs/bundler-utils/compiled/tapable/index.js:1:4851)
    at onCompiled (/home/circleci/esapiens/web/node_modules/@umijs/bundler-webpack/compiled/webpack/index.js:62960:21)
    at /home/circleci/esapiens/web/node_modules/@umijs/bundler-webpack/compiled/webpack/index.js:63704:17
    at _next0 (eval at create (/home/circleci/esapiens/web/node_modules/@umijs/bundler-utils/compiled/tapable/index.js:1:7682), <anonymous>:16:1)
    at eval (eval at create (/home/circleci/esapiens/web/node_modules/@umijs/bundler-utils/compiled/tapable/index.js:1:7682), <anonymous>:26:1)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
fatal - A complete log of this run can be found in:
fatal - /home/circleci/esapiens/web/node_modules/.cache/logger/umi.log
fatal - Consider reporting a GitHub issue on https://github.com/umijs/umi/issues

解决方法:

config.ts里面修改配置

export default defineConfig({

jsMinifier: 'terser',

相关推荐
代码or搬砖20 分钟前
Java集合-Set讲解
java·开发语言
艾上编程21 分钟前
第三章——爬虫工具场景之Python爬虫实战:学术文献摘要爬取,助力科研高效进行
开发语言·爬虫·python
明洞日记28 分钟前
【数据结构手册008】STL容器完全参考指南
开发语言·数据结构·c++
静小谢37 分钟前
前后台一起部署,vite配置笔记base\build
前端·javascript·笔记
用户47949283569151 小时前
改了CSS刷新没反应-你可能不懂HTTP缓存
前端·javascript·面试
jllllyuz1 小时前
matlab使用B样条进行曲线曲面拟合
开发语言·matlab
还好还好不是吗1 小时前
老项目改造 vue-cli 2.6 升级 rsbuild 提升开发效率300% upupup!!!
前端·性能优化
sumAll1 小时前
别再手动对齐矩形了!这个开源神器让 AI 帮你画架构图 (Next-AI-Draw-IO 体验)
前端·人工智能·next.js
OpenTiny社区1 小时前
2025OpenTiny星光ShowTime!年度贡献者征集启动!
前端·vue.js·低代码
wangan0942 小时前
不带圆圈的二叉树
java·前端·javascript