Bun bun-types Reject HTMLBundle as Per-Method Route Value
Is it fixed? Not yet.
Ongoing since Nov 11, 23:03 UTC. First reported Nov 11, 23:03 UTC.
What happened
In Bun v1.4.4-canary, an HTML import used as a per-method route value executes successfully at runtime, but the TypeScript definitions (`bun-types`) incorrectly reject it.
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 fixTimeline
- Investigating(current)
- Workaround available(upcoming)
- Resolved(upcoming)
- First report on GitHub issue
Types: an HTMLBundle is rejected as a per-method route value, though the runtime serves it
Source
Evidence
1 report · 1 GitHubShow
- [1]GitHub First reportTypes: an HTMLBundle is rejected as a per-method route value, though the runtime serves it(opens GitHub issue in a new tab)
What version of Bun is running? 1.4.4-canary.1+11c367163 (bun-types 1.4.4) What platform is your computer? Linux 7.0.0-42-generic x86_64 unknown What steps can reproduce the bug? An HTML import used as a per-method route value works at run time (support was added for #19702), but the types reject it. page.html: <!doctype html><html><body>page</body></html> repro.ts: import page from "./page.html"; const server = Bun.serve({ port: 0, routes: { "/page": { GET: page }, }, fetch: () => new…
by kingsloob1 0upvotes 0comments
FAQ
What happened in the Bun issue?
In Bun v1.4.4-canary, an HTML import used as a per-method route value executes successfully at runtime, but the TypeScript definitions (`bun-types`) incorrectly reject it.
What is affected by the Bun issue?
Bun (versions: 1.4.4-canary.1+11c367163 (bun-types 1.4.4)).
When did the Bun issue start and end?
It started Nov 11, 23:03 UTC and is still ongoing (7 d 5 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.