Next.js Discord

Discord Forum

Bun error with new Next.js project

Unanswered
Red-billed Tropicbird posted this in #help-forum
Open in Discord
Red-billed TropicbirdOP
Hi,

I tried creating a Next.js project with the newest Bun for windows. However, after running the dev server I get flooded with the same error message. Here are the step by step things I did:
1. bun create next-app
2. cd nextBun
3. Edit package.json to use turbopack "dev": "next dev --turbo",
4. Start the dev server with bun --bun run dev
5. Flooded with the following error message:
C:\Users\myusername\Desktop\nextBun\nextbun>bun --bun run dev
$ next dev --turbo
   â–² Next.js 14.1.4 (turbo)
   - Local:        http://localhost:3000

Watchpack Error (watcher): EBUSY: EBUSY watching "C:\Users\myusername\Desktop\nextBun\nextbun"
Watchpack Error (watcher): EBUSY: EBUSY watching "C:\Users\myusername\Desktop\nextBun\nextbun"
Watchpack Error (watcher): EBUSY: EBUSY watching "C:\Users\myusername\Desktop\nextBun\nextbun"
...

It continues giving the same error, until I force stop it.

0 Replies