Bun issue (Nov 26): Bun Evaluates CommonJS Packages Out of Order When Sharing a Dependency
Is it fixed? Not yet.
Ongoing since Nov 26, 10:19 UTC. First reported Nov 26, 10:19 UTC.
What happened
When an ES module imports two CommonJS packages that share a common dependency, Bun may evaluate them in the wrong order depending on their size. This bug affects versions including 1.4.3 and 1.4.5-canary on Linux.
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 fixOutage timeline
- Investigating(current)
- Workaround available(upcoming)
- Resolved(upcoming)
- First report on GitHub issue
CommonJS packages imported from an ES module are evaluated out of order when they share a dependency
Source
Reports of this outage
1 report · 1 GitHubShow
- [1]GitHub First reportCommonJS packages imported from an ES module are evaluated out of order when they share a dependency(opens GitHub issue in a new tab)
What version of Bun is running? 1.4.5-canary.1+862278db7 (also 1.4.3+c6da4a4d3) What platform is your computer? Linux 7.0.0-44-generic x86_64 unknown What steps can reproduce the bug? When an ES module imports two CommonJS packages, Bun can evaluate them in the wrong order. Here the first package is large, and both packages require() a third one. Bun then runs the second import first. setup.mjs writes three CommonJS packages into node_modules. Each records its name in globalThis.order when it…
by kingsloob1 0upvotes 1comments
Bun issue FAQ
What happened in the Bun issue, and why?
Ongoing since Nov 26, 10:19 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 (versions: 1.4.3, 1.4.5-canary.1+862278db7). Also affected at the same time: Linux.
When did the Bun issue start and end?
It started Nov 26, 10:19 UTC and is still ongoing (1 d 2 h 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.