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

Quiet. No reports and thumbs-up in the last two weeks, down from 6 a week at the early-September peak.

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

  1. Bun 1.4.1 bundler renames two identifiers to the same name, emitting illegal "var Check2 = Check2" that Bun's own runtime rejects#41382
  2. Bun 1.4.1 Error SyntaxError: Cannot declare a var variable that shadows a let/const/class variable: 'Check2'.#41370
  3. 1.4.1 regression: bundler emits var X = X shadowing a block-scoped let X, breaking any Elysia build#41351

Do you work on Bun?

Claim its RAP Sheet to see what your users report and answer them in one place.