npx react-compiler-healthcheck
install babel-plugin-react-compiler
install react-compiler-runtime
defineConfig({
plugins: [
react({
babel: {
plugins: [
[
"babel-plugin-react-compiler",
{
target: "18",
runtimeModule: "react-compiler-runtime",
},
],
],
},
}),
],
});
run dev
+++ checks/reactCompiler.ts
if (
ActionableFailures.length > 0 ||
OtherFailures.length > 0
) {
reportFailures(ActionableFailures);
reportFailures(OtherFailures);
}
(BuildHIR::lowerExpression) Expected Identifier; got MemberExpression key in ObjectExpression
(BuildHIR::lowerExpression) Expected Identifier; got MemberExpression key in ObjectExpression
(BuildHIR::lowerExpression) Handle tagged template with interpolations
(BuildHIR::lowerExpression) Handle tagged template with interpolations
Ref values (the `current` property) may not be accessed during render. (https://react.dev/reference/react/useRef)
<StepItem
{...someNotSoImportantProps}
disabled={
!tracker.current.includes(
step.name
)
}
/>
Ref values (the `current` property) may not be accessed during render. (https://react.dev/reference/react/useRef)
https://rajatvijay.bio.link/