Bun outage (Nov 27): Bun Bun.Transpiler scanImports Throws Unexpected #! Error
Is it fixed? Not yet.
Ongoing since Nov 27, 19:20 UTC. First reported Nov 27, 19:20 UTC.
What happened
Bun.Transpiler's scanImports() method throws an "Unexpected #!" error when encountering a leading hashbang, whereas scan() and transformSync() accept it successfully. This affects users on Bun versions 1.4.4 through 1.4.6-canary.
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
- Investigating(current)
- Workaround available(upcoming)
- Resolved(upcoming)
- First report on GitHub issue
Bun.Transpiler: `scanImports()` throws "Unexpected #!" on a leading hashbang that `scan()` and `transformSync()` accept
Source
Reports of this outage
1 report · 1 GitHubShow
- [1]GitHub First reportBun.Transpiler: `scanImports()` throws "Unexpected #!" on a leading hashbang that `scan()` and `transformSync()` accept(opens GitHub issue in a new tab)
What version of Bun is running? 1.4.6-canary.1+302ba1f9c (also 1.4.5+a7733435c and 1.4.4) What platform is your computer? Microsoft Windows NT 10.0.26300.0 x64 What steps can reproduce the bug? Reproducer: https://gist.github.com/YevheniiKotyrlo/bb5714a277fecec3d8e6da9fe337d1be bun repro.js It passes the same source, whose first line is #!/usr/bin/env bun, to scanImports(), scan() and transformSync() of a Bun.Transpiler with the ts loader and then the js loader, and the source without its…
by YevheniiKotyrlo 0upvotes 1comments
Bun outage FAQ
What happened in the Bun outage, and why?
Ongoing since Nov 27, 19:20 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.4, 1.4.5, 1.4.6-canary).
When did the Bun outage start and end?
It started Nov 27, 19:20 UTC and is still ongoing (40 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.