You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[vite:css-post] Transform failed with 2 errors:
<stdin>:42:31: ERROR: Expected ")" to end URL token
<stdin>:42:215: ERROR: Expected ")" to end URL token
✘ [ERROR] Expected ")" to end URL token
<stdin>:42:31:
42 │ background: image-set(url(url(data:image/png;base64) , url(iVBOR...
╵ ^
✘ [ERROR] Expected ")" to end URL token
<stdin>:42:215:
42 │ ...AAAAASUVORK5CYII=)) 1x, url(url(data:image/png;base64) , url(iV...
╵ ^
error during build:
Error: Transform failed with 2 errors:
<stdin>:42:31: ERROR: Expected ")" to end URL token
<stdin>:42:215: ERROR: Expected ")" to end URL token
at failureErrorWithLog (/home/projects/vitejs-vite-uzayyp/node_modules/esbuild/lib/main.js:1557:15)
at eval (/home/projects/vitejs-vite-uzayyp/node_modules/esbuild/lib/main.js:1346:29)
at eval (/home/projects/vitejs-vite-uzayyp/node_modules/esbuild/lib/main.js:637:9)
at handleIncomingPacket (/home/projects/vitejs-vite-uzayyp/node_modules/esbuild/lib/main.js:734:9)
at Socket.readFromStdout (/home/projects/vitejs-vite-uzayyp/node_modules/esbuild/lib/main.js:604:7)
at Socket.EventEmitter.emit (https://vitejs-vite-uzayyp.w.staticblitz.com/blitz.331c80ffab288536319518a60349d00207075dad.js:6:155505)
at addChunk (https://vitejs-vite-uzayyp.w.staticblitz.com/blitz.331c80ffab288536319518a60349d00207075dad.js:6:656340)
at readableAddChunk (https://vitejs-vite-uzayyp.w.staticblitz.com/blitz.331c80ffab288536319518a60349d00207075dad.js:6:656044)
at Socket.Readable.push (https://vitejs-vite-uzayyp.w.staticblitz.com/blitz.331c80ffab288536319518a60349d00207075dad.js:6:656728)
at _0x9a1e99.onStreamRead [as onread] (https://vitejs-vite-uzayyp.w.staticblitz.com/blitz.331c80ffab288536319518a60349d00207075dad.js:6:783839)
~/projects/vitejs-vite-uzayyp
❯ npm run build
$ vite build
vite v2.9.8 building for production...
✓ 34 modules transformed.
[vite:css-post] Transform failed with 2 errors:
<stdin>:42:31: ERROR: Expected ")" to end URL token
<stdin>:42:215: ERROR: Expected ")" to end URL token
✘ [ERROR] Expected ")" to end URL token
<stdin>:42:31:
42 │ background: image-set(url(url(data:image/png;base64) , url(iVBOR...
╵ ^
✘ [ERROR] Expected ")" to end URL token
<stdin>:42:215:
42 │ ...AAAAASUVORK5CYII=)) 1x, url(url(data:image/png;base64) , url(iV...
╵ ^
error during build:
Error: Transform failed with 2 errors:
<stdin>:42:31: ERROR: Expected ")" to end URL token
<stdin>:42:215: ERROR: Expected ")" to end URL token
at failureErrorWithLog (/home/projects/vitejs-vite-uzayyp/node_modules/esbuild/lib/main.js:1557:15)
at eval (/home/projects/vitejs-vite-uzayyp/node_modules/esbuild/lib/main.js:1346:29)
at eval (/home/projects/vitejs-vite-uzayyp/node_modules/esbuild/lib/main.js:637:9)
at handleIncomingPacket (/home/projects/vitejs-vite-uzayyp/node_modules/esbuild/lib/main.js:734:9)
at Socket.readFromStdout (/home/projects/vitejs-vite-uzayyp/node_modules/esbuild/lib/main.js:604:7)
at Socket.EventEmitter.emit (https://vitejs-vite-uzayyp.w.staticblitz.com/blitz.331c80ffab288536319518a60349d00207075dad.js:6:155505)
at addChunk (https://vitejs-vite-uzayyp.w.staticblitz.com/blitz.331c80ffab288536319518a60349d00207075dad.js:6:656340)
at readableAddChunk (https://vitejs-vite-uzayyp.w.staticblitz.com/blitz.331c80ffab288536319518a60349d00207075dad.js:6:656044)
at Socket.Readable.push (https://vitejs-vite-uzayyp.w.staticblitz.com/blitz.331c80ffab288536319518a60349d00207075dad.js:6:656728)
at _0x9a1e99.onStreamRead [as onread] (https://vitejs-vite-uzayyp.w.staticblitz.com/blitz.331c80ffab288536319518a60349d00207075dad.js:6:783839)
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
Describe the bug
When using
image-set
, it can use image in base64, like this:But after running
npm run build
, you may get an error. This only happens in the latest version 2.9.8。I think this pr #7874 broke this behavior.
Reproduction
https://stackblitz.com/edit/vitejs-vite-uzayyp?file=src/App.css
System Info
Used Package Manager
npm
Logs
Validations
The text was updated successfully, but these errors were encountered: