WhatBrokeToday
FAQ
Bun

Bun outage (Nov 23): Bun.build Panics With Thread Has Too Little Stack Error on dts Generation

medium

Is it fixed? Not yet.

Ongoing since Nov 23, 00:08 UTC. First reported Nov 23, 00:08 UTC.

What happened

Bun.build with dts: true panics and crashes with a "thread has too little stack" error when processing an imported typeof type referencing an array or object constant. Users attempting to generate TypeScript declaration files using Bun are affected by this bug.

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.

Official fix

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" on an imported `typeof` an array or object constant

    Source

Reports of this outage

1 report · 1 GitHubShow
  1. [1]
    GitHub First report
    Bun.build({ dts: true }) panics "thread has too little stack" on an imported `typeof` an array or object constant(opens GitHub issue in a new tab)

    What happens // a.ts export const X = [1]; export type T = typeof X; // b.ts import type { T } from "./a.ts"; export type D = T; await Bun.build({ entrypoints: ["./b.ts"], dts: true, throw: false }); panic: the thread has too little stack for a task oh no: Bun has crashed. This indicates a bug in Bun, not your code.…

    by metonym 0upvotes 1comments

Bun outage FAQ

What happened in the Bun outage, and why?

Ongoing since Nov 23, 00:08 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.

When did the Bun outage start and end?

It started Nov 23, 00:08 UTC and is still ongoing (2 h 47 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.