-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vite build fails on 1.2.1 #16823
Comments
Appears to have regressed with #16754 |
I don't know if its related, but the error i get is very similar on vite + react build: Im trying to build vite + react using bun run build, and im getting this error after using the latest bun 1.2.1:
it worked fine before updating. |
Hello
set docker image to |
I can confirm I have the same issue with 1.2.1 using SolidStart. Switching back to 1.2.0 solved the issue. |
Downgraded the docker image to oven/bun:1.2.0-slim and the build pipeline worked again for vite + react. |
same here, with VUE vite v6.0.11 building for production...
✓ 6749 modules transformed.
x Build failed in 10.55s
[ error ] [vite:esbuild-transpile] Transform failed with 1 error:
assets/highlighter-!~{00e}~.js:9438:25: ERROR: Expected ")" but found "\x81"
Expected ")" but found "\x81"
9436| const colorPalette = createColorPalette(
9437| Object.fromEntries(
9438| namedColors.map((name) => [
| ^
9439| name,
9440| theme.colors?.[`terminal.ansi${name[0].toUpperCase()}${name.substring(1)}`]
rendering chunks (11)...% |
Same issue with bun + vite on Ubuntu 2024 and macOS 15. Can confirm rollback to 1.2.0 fixes it on all platforms |
Same on bun + vite, can confirm 1.2.0 works. |
Same on bun + sveltekit on Ubuntu 24.04, can confirm 1.2.0 works. |
Yup, seeing this as well: vinxi + vite + bun 1.2.1 |
Tuve el mismo error usando vite + react. |
same on bun + vite + laravel 🐸 |
Also seeing this on Vite + Nuxt/Vue. Works locally, but fails in my CI/CD with latest alpine Switching to 1.2.0-apline fixed it |
Very interesting to see. Bun 1.2.1 works locally with bun run build for vite + react, but fails in CI/CD pipeline using docker image. |
We don’t have a fix yet, but we are working on it and will do a release once it’s fixed |
with vite (remix) too |
facing the same on my nuxt project, while Bun 1.2.1 works locally with
had to switch to |
Same error with macos + sveltekit, bun 1.2.1 is broken but 1.2.0 is fine for both docker image and locally. |
I have no crash but an infinite build that blocks on |
We had a similar error with Vite + SvelteKit on arm64 machine |
Yay... same issue, I am in the mix ! Bun 1.2.1 + Svelte 5.18.0 + Vite 6.0.7 5.741 vite v6.0.11 building for production...
5.747 transforming...
9.523 ✓ 1398 modules transformed.
9.902 rendering chunks...
9.937 x Build failed in 4.20s
9.955 x Build failed in 7.89s
9.956 error during build:
9.956 [vite-plugin-sveltekit-compile] [vite:esbuild-transpile] Transform failed with 1 error:
9.956 _app/immutable/chunks/!~{00f}~.js:2645:27: ERROR: Expected ")" but found "\x00"
9.956
9.956 Expected ")" but found "\x00"
9.956 2643| const decoder = new TextDecoder();
9.956 2644| function deserialize(data) {
9.956 2645| return unflatten(data, {
9.956 | ^
9.956 2646| ...app.decoders,
9.956 2647| Promise: (id) => {
9.956
9.956
9.956 Expected ")" but found "\x00"
9.956 2643| const decoder = new TextDecoder();
9.956 2644| function deserialize(data) {
9.956 2645| return unflatten(data, {
9.956 | ^
9.956 2646| ...app.decoders,
9.956 2647| Promise: (id) => {
9.956
9.956 [vite:esbuild-transpile] Transform failed with 1 error:
9.956 _app/immutable/chunks/!~{00f}~.js:2645:27: ERROR: Expected ")" but found "\x00"
9.956
9.956 Expected ")" but found "\x00"
9.956 2643| const decoder = new TextDecoder();
9.956 2644| function deserialize(data) {
9.956 2645| return unflatten(data, {
9.956 | ^
9.956 2646| ...app.decoders,
9.956 2647| Promise: (id) => {
9.956
9.956 at failureErrorWithLog (/app/node_modules/esbuild/lib/main.js:1476:19)
9.956 at <anonymous> (/app/node_modules/esbuild/lib/main.js:755:50)
9.956 at <anonymous> (/app/node_modules/esbuild/lib/main.js:622:9)
9.956 at handleIncomingPacket (/app/node_modules/esbuild/lib/main.js:677:12)
9.956 at readFromStdout (/app/node_modules/esbuild/lib/main.js:600:7)
9.956 at emit (node:events:87:22)
9.956 at addChunk (internal:streams/readable:265:47)
9.956 at readableAddChunkPushByteMode (internal:streams/readable:243:18)
9.956 at handleArrayBufferViewResult (internal:streams/native-readable:79:16)
9.956 at <anonymous> (internal:streams/native-readable:43:68)
10.02 error: "vite" exited with code 1 |
We are still working on a fix. Aiming to release tonight with the fix (and some memory reductions) |
I encountered this as well on vite react pwc with tanstack router. But it fix when using |
Also seeing this issue: Reverting back to 1.2.0 fixes it for me. |
Landed here because I was trying to build a react-router 7 app (vite) with just bun (no node) and it hangs on |
@Jarred-Sumner are we still thinking that a fix for this will land in 1.2.2? |
Using |
Thanks @Jarred-Sumner & team, fixed ! |
Edit: fixed in #16856, this will be part of Bun v1.2.2
original issue:
What version of Bun is running?
1.2.1+ce532901c
What platform is your computer?
Darwin 24.2.0 arm64 arm
What steps can reproduce the bug?
Here's a trimmed down project that has the issue: https://github.com/LetrixZ/bun-issue
bun install
bun run build
What is the expected behavior?
Build succeeding like on 1.2.0 and previous versions
What do you see instead?
Build fails with different issues. Examples:
Additional information
No response
The text was updated successfully, but these errors were encountered: