记录一个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',

相关推荐
带娃的IT创业者9 分钟前
Python 异步编程完全指南:从入门到精通
服务器·开发语言·python·最佳实践·asyncio·异步编程
叶梅树3 小时前
DocsJS npmjs 自动化发布复盘(Trusted Publisher)
前端·npm
一只鹿鹿鹿3 小时前
信息安全等级保护安全建设防护解决方案(总体资料)
运维·开发语言·数据库·面试·职场和发展
喵叔哟3 小时前
9. 【Blazor全栈开发实战指南】--Blazor调用JavaScript
开发语言·javascript·udp
wuqingshun3141593 小时前
如何停止一个正在退出的线程
java·开发语言·jvm
我命由我123453 小时前
Element Plus - Form 的 resetField 方法观察记录
开发语言·前端·javascript·vue.js·html·html5·js
朱包林3 小时前
Python基础
linux·开发语言·ide·python·visualstudio·github·visual studio
清空mega3 小时前
《Vue3 项目结构详解:components、views、assets、router、stores 到底该怎么理解?》
前端·javascript·vue.js
Barkamin4 小时前
队列的实现(Java)
java·开发语言
hixiong1234 小时前
C# OpenvinoSharp使用RAD进行缺陷检测
开发语言·人工智能·c#·openvino