bun icon indicating copy to clipboard operation
bun copied to clipboard

Bun 1.0.24 breaks hot-reloading in Next.js 14 with turbopack

Open e-simpson opened this issue 1 year ago • 2 comments

What version of Bun is running?

1.0.24+6fa35839c

What platform is your computer?

Darwin 23.1.0 arm64 arm

What steps can reproduce the bug?

Run a Bun v1.0.24 dev server on a NextJS (v14.1.0) web app using Turbopack. Make a change. An example that breaks for me is changing a Tailwindcss class padding variable. I'm sure there are plenty of others.

What is the expected behavior?

The site would hot-reload with changes.

What do you see instead?

Hot-reloading just breaks and freezes the app. No error come up in the terminal or web dev console. I have to refresh the page or completely restart the server.

Additional information

This didn't occur on 1.0.23. Upgrading to Bun 1.0.24 is the only thing I've changed. I also can't seem to downgrade Bun with curl -fsSl https://bun.sh/install | bash -s "bun-v1.0.23" (as noted in https://github.com/oven-sh/bun/discussions/6979).

For now I've just disabled turbopack usage.

This issue may go away on its own when turbopack reaches parity with webpack. Just thought I'd document this.

e-simpson avatar Jan 20 '24 21:01 e-simpson

Tested and still occurring on bun v1.0.25.

e-simpson avatar Jan 21 '24 19:01 e-simpson

Still, facing the same issue!

xgovernor avatar Apr 06 '24 13:04 xgovernor