Bun

Bun outage (Nov 30): Bun.build Panics with Thread Stack Error on dts Generation

medium

Is it fixed? Not yet.

Ongoing since Nov 30, 21:13 UTC. First reported Nov 30, 21:13 UTC.

What happened

Bun.build with dts: true panics with a "thread has too little stack for a task" error on macOS arm64 when an exported type alias references an unexported class or function value. This prevents successful TypeScript declaration file generation for affected modules.

What caused it?

Under active investigation. No report has identified a root cause yet.

No verified workaround yet

None of the linked reports describe a mitigation. This page updates when one appears.

Outage timeline

  1. Investigating(current)
  2. Workaround available(upcoming)
  3. Resolved(upcoming)
  1. First report on GitHub issue

    Bun.build({ dts: true }) panics "thread has too little stack" when an exported type names an unexported class

    Source

Reports of this outage

1 report · 1 GitHubShow
  1. [1]
    GitHub First report
    Bun.build({ dts: true }) panics "thread has too little stack" when an exported type names an unexported class(opens GitHub issue in a new tab)

    On Bun 1.4.6 (canary 7624a7ea1), macOS arm64, Bun.build with dts: true panics with "the thread has too little stack for a task" when an exported type alias names a class (or a function value) that the module declares or imports as a type but doesn't export. // src/index.ts class Raw {} export type X = Raw; await Bun.build({ entrypoints: ["./src/index.ts"], outdir: "./out", target: "bun", dts: true }); Expected: out/index.d.ts declares Raw (unexported) and export type X = Raw. Actual: a panic.…

    by metonym 0upvotes 1comments

Bun outage FAQ

What happened in the Bun outage, and why?

Ongoing since Nov 30, 21:13 UTC. No cause has been published yet; this page adds it once the vendor or a report explains it.

What is affected by the Bun outage?

Bun (versions: 1.4.6 (canary 7624a7ea1)).

When did the Bun outage start and end?

It started Nov 30, 21:13 UTC and is still ongoing (54 min so far). This page updates as it develops.

How do I get alerts for Bun?

Subscribe to the Bun RSS feed for every new Bun incident, or connect an AI assistant to WhatBrokeToday over MCP and ask whether Bun is down. Bun feed

Where does this information come from?

WhatBrokeToday collects public status pages, developer community reports and security advisories, groups the ones about the same problem, and links every report under Evidence on this page. This one has 1 report from 1 independent source.