WhatBrokeToday
FAQ
Bun

Bun issue (Nov 23): Bun Runtime Plugin build.config Undefined Property TypeError

medium

Is it fixed? Not yet.

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

What happened

Runtime plugins registered via Bun.plugin() or preloads receive an undefined build.config object, causing a TypeError at runtime despite bun-types declaring it as always set. This breaks code that relies on the build configuration during execution.

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

    `build.config` is undefined in a `Bun.plugin()` runtime plugin, but bun-types says it's always set

    Source

Reports of this outage

1 report · 1 GitHubShow
  1. [1]
    GitHub First report
    `build.config` is undefined in a `Bun.plugin()` runtime plugin, but bun-types says it's always set(opens GitHub issue in a new tab)

    What happens bun-types declares PluginBuilder.config: BuildConfig & { plugins: BunPlugin[] }, not optional, documented as "The config object passed to Bun.build". A plugin registered at runtime with Bun.plugin() (or a preload) gets build.config === undefined, so code that type-checks throws: export const plugin: BunPlugin = { name: "config", setup(build) { console.log(build.config.target); // tsc: OK }, }; Bun.plugin(plugin); // TypeError: undefined is not an object (evaluating…

    by metonym 0upvotes 1comments

Bun issue FAQ

What happened in the Bun issue, 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 issue?

Bun.

When did the Bun issue start and end?

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