6 people reported
All time, since Sep 4, including 3 thumbs-up on GitHub.
Bundler var shadows let, won't parse
“Bundling an Elysia app with Bun 1.4.1 produces invalid JavaScript.”
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/5559/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
Bundler emits var that shadows a let, output fails to parse. Bundling or compiling Elysia apps with Bun 1.4.1 emits "var Check2 = Check2"; Bun 1.4.0 builds the same input correctly.
Is this your bug?
File my report- Where
- bun build
- Error text
SyntaxError: Cannot declare a var variable that shadows a let/const/class variable: 'Check2'.- Versions
- 1.4.1
- Platforms
- Linux, macOS
- How bad
- Stops work: a core feature can't be used. Most reports say it used to work.
Original reports3, newest first
- Bun 1.4.1 bundler renames two identifiers to the same name, emitting illegal "var Check2 = Check2" that Bun's own runtime rejects#41382
- Bun 1.4.1 Error SyntaxError: Cannot declare a var variable that shadows a let/const/class variable: 'Check2'.#41370
- 1.4.1 regression: bundler emits
var X = Xshadowing a block-scopedlet X, breaking any Elysia build#41351