2 people reported

All time, since Aug 6.

React compiler drops useState calls with bun or node target

“reactCompiler: true combined with target: "bun" or target: "node" silently deletes useState calls and event handler props from the output.”

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/5716/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

React compiler drops useState calls with bun or node target. With --react-compiler and --target=bun or --target=node, useState and event handler props are deleted from output; browser target is correct.

Is this your bug?

File my report
Where
bun build
Error text
Uncaught ReferenceError: setIsAuth is not defined
Versions
1.4.0-canary.1 to 1.4.0
Platforms
macOS, Windows
How bad
Breaks a normal workflow.

Original reports2, newest first

  1. reactCompiler with target "bun" or "node" silently deletes useState calls and event handler props#40442
  2. React Compiler: Uncaught ReferenceError: setIsAuth is not defined#37022

Do you work on Bun?

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