oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
73.84k stars 2.73k forks source link

`bun --bun run dev` not working without `--turbo` in Next.js #13962

Open lpbonomi opened 1 month ago

lpbonomi commented 1 month ago

What version of Bun is running?

1.1.27

What platform is your computer?

Darwin 23.6.0 arm64 arm

What steps can reproduce the bug?

  1. Create next app: bunx create-next-app@latest

  2. Run app: bun run dev The app never starts

  3. Create next app: bunx create-next-app@latest

  4. Add the --turbo flag to next dev

  5. Run app: bun run dev The app starts

What is the expected behavior?

The app starts

What do you see instead?

bun --bun run dev
$ next dev
 ⚠ Port 3000 is in use, trying 3001 instead.
 ⚠ Port 3001 is in use, trying 3002 instead.
  ▲ Next.js 14.2.11
  - Local:        http://localhost:3002

 ✓ Starting...

Additional information

No response

fel1x-developer commented 5 days ago

Bun 1.1.30 with Darwin 24.0.0 works.