Skip to content

[Compiler Bug]: crashes with “Expected a node for all scopes” #37228

Description

@controversial

What kind of issue is this?

  • React Compiler core (the JS output is incorrect, or your app works incorrectly after optimization)
  • babel-plugin-react-compiler (build issue installing or using the Babel plugin)
  • eslint-plugin-react-hooks (build issue installing or using the eslint plugin)
  • react-compiler-healthcheck (build issue installing or using the healthcheck script)

Link to repro

https://playground.react.dev/#N4Igzg9grgTgxgUxALhASwLYAcIwC4AEwBUYCAyngIZ4IEC+BAZjBBgQDogwJVx5cA3BwB2CAB458zKCP5oIIggCUEWVgAoAlEVEECcRWEIBtGFQDuAXQIBeEmUo0EAHmMw0IgOYEAPiREAEwQmTwRAgD4NWWDQsUCtYSUDI0IANzsCDW07CN1k-TwYAE98-XKCHjxYJWJzCwYCAH5KywJkANiwwKSKxjgaOAALIno9cqqazpDu3oYtbTnJmCUXQLQ0iOA0+hcAenXNpLGREAAaEEMRUK8UEGBxvb3DbDQAGxoFEQBZCGCOrhUN5vLiiejncBDCAWACSIloKyBYBQTCRCHoQA

Repro steps

Open the above playground link, compile the code with babel-plugin-react-compiler, or run the code through tooling that wraps the Rust react-compiler port, like oxlint.

How often does this bug happen?

Every time

What version of React are you using?

19.2.4

What version of React Compiler are you using?

main @ ec61f18 (playground, 2026-08-06)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: UnconfirmedA potential issue that we haven't yet confirmed as a bugType: Bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions