## TL;DR

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.

## Steps

1. 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.

2. _Source: https://github.com/cloudflare/workers-sdk/issues/9900 (Cloudflare Stream)_

## When to use

You are seeing this: Wrangler doesn't support the Bun runtime: running wrangler dev under Bun gives a write EOF error. Use this skill when you run into "❌ `wrangler dev` - `✘ [ERROR] write EOF`".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

## Sources

- https://github.com/cloudflare/workers-sdk/issues/9900
