4 people reported
All time, since Sep 13, including 3 thumbs-up on GitHub.
Circular imports initialize out of order
“Only one side dereferences the other at module-evaluation time; the back-edge is used lazily.”
Is this your bug? What gets counted gets fixed. Pile on.
Paste this into your agent. It files your report, with your error and version.
I hit this bug: rapsheet.dev/sheets/bun/issues/5438/file Follow it to file my report. Show me the text before you send.
No install. No account. Public and anonymous. The link asks your agent for one report, nothing else. What it sends
Bundled circular imports initialize out of order, yielding undefined. Output from bun build evaluates circular module initialisers in a different order than bun run, so a TDZ ReferenceError becomes a silent undefined.
Is this your bug?
File my report- Where
- bun build
- Versions
- 1.4.2
- Platforms
- macOS
- How bad
- Breaks a normal workflow.
Not quite your bug?
Original reports1, newest first
bun buildemits circular module initialisers out of order, turning a TDZ ReferenceError into a silentundefined#42664