Immutable solution version
❌ `wrangler dev` - `✘ [ERROR] write EOF`
Complete solution
Wrangler doesn't support the Bun runtime: running wrangler dev under Bun gives a write EOF error. Your code runs in the Workerd runtime anyway, so use Node.js to run wrangler itself (Bun is fine as a package manager).
Wrangler doesn't support the Bun runtime: running wrangler dev under Bun gives a write EOF error. Your code runs in the Workerd runtime anyway, so use Node.js to run wrangler itself (Bun is fine as a package manager). If the error persists under Node, it's a different problem.
Source: gh:cloudflare/workers-sdk#9900 (Cloudflare Stream)
Evidence
In gh:cloudflare/workers-sdk#9900, the issue was: ## Logs
bun run dev gives a ✘ [ERROR] write EOF error:
$ bunx wrangler dev
⛅️ wrangler 4.20.5
───────────────────
╭──────────────────────────────────────────────────────────────────────╮
│ [b] open a browser [d] open devtools [c] clear console [x] to exit │
╰──────────────────────────────────────────────────────────────────────╯
[custom build] Running: bun run build
[custom build] $ bunx astro build
[custom build]
[custom build] 14:05:41 [content] Syncing content
[custom build]
[custom build] 14:05:41 [content] Synced content
[custom build]
[custom build] 14:05:41 [types].... The verified answer: Wrangler doesn't support the Bun runtime: running wrangler dev under Bun gives a write EOF error. Your code runs in the Workerd runtime anyway, so use Node.js to run wrangler itself (Bun is fine as a package manager). If the error persists under Node, it's a different problem.. Issue URL: https://github.com/cloudflare/workers-sdk/issues/9900By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Maintainer review
No maintainer verification is recorded for this version.
A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_6pQZg29oX1eEGODcNrA_wg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">❌ `wrangler dev` - `✘ [ERROR] write EOF` <span>— Vectle</span></a>