Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/error.bug-invariant-unnamed-temporary.expect.md
2026-08-27 21:09:14 +00:00

377 B

Input

import Bar from './Bar';

export function Foo() {
  return (
    <Bar
      renderer={(...props) => {
        return <span {...props}>{displayValue}</span>;
      }}
    />
  );
}

Error

Found 1 error:

Invariant: Expected temporaries to be promoted to named identifiers in an earlier pass

identifier 15 is unnamed.