vbenjs / vite-plugin-svg-icons

Vite Plugin for fast creating SVG sprites.
MIT License
832 stars 112 forks source link

vue3+vite3.x+ts项目打包完成后报错 #110

Open ysg-lijinwen opened 3 months ago

ysg-lijinwen commented 3 months ago

rendering chunks (113)... ERROR [vite:esbuild-transpile] Transform failed with 1 error: 20:40:00
assets/js/virtual_svg-icons-register-f87e325e.js:82032:18: ERROR: Transforming async generator functions to the configured target environment ("chrome64", "edge79", "es2020", "firefox67", "safari11.1" + 2 overrides) is not supported yet

Transforming async generator functions to the configured target environment ("chrome64", "edge79", "es2020", "firefox67", "safari11.1" + 2 overrides) is not supported yet 82030| }; 82031| 82032| const readBytes = async function (iterable, chunkSize, encode) { | ^ 82033| for await (const chunk of iterable) { 82034| yield streamChunk(ArrayBuffer.isView(chunk) ? chunk : (await encode(String(chunk))), chunkSize);

ERROR error during build: 20:40:00
Error: Transform failed with 1 error: assets/js/virtual_svg-icons-register-f87e325e.js:82032:18: ERROR: Transforming async generator functions to the configured target environment ("chrome64", "edge79", "es2020", "firefox67", "safari11.1" + 2 overrides) is not supported yet at failureErrorWithLog (E:\CarleaData\git\project\sjsy\web\node_modules\esbuild\lib\main.js:1575:15) at E:\CarleaData\git\project\sjsy\web\node_modules\esbuild\lib\main.js:814:29 at responseCallbacks. (E:\CarleaData\git\project\sjsy\web\node_modules\esbuild\lib\main.js:680:9) at handleIncomingPacket (E:\CarleaData\git\project\sjsy\web\node_modules\esbuild\lib\main.js:735:9) at Socket.readFromStdout (E:\CarleaData\git\project\sjsy\web\node_modules\esbuild\lib\main.js:656:7) at Socket.emit (node:events:513: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:190:23)

335060087 commented 1 month ago

解决了吗