Skip to content

Commit

Permalink
"files importable" > "modules imported"
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Jan 13, 2025
1 parent dd5eecd commit cf6f1ca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

throw new Error(
'The React Compiler is currently not supported in a React Server environment. ' +
'Ensure that files importable with a `react-server` condition are not compiled with the React Compiler. ' +
'Ensure that modules imported with a `react-server` condition are not compiled with the React Compiler. ' +
"Libraries should provide a dedicated `react-server` entrypoint that wasn't compiled with the React Compiler.",
);
2 changes: 1 addition & 1 deletion packages/react/src/ReactCompilerRuntimeServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@

throw new Error(
'The React Compiler is currently not supported in a React Server environment. ' +
'Ensure that files importable with a `react-server` condition are not compiled with the React Compiler. ' +
'Ensure that modules imported with a `react-server` condition are not compiled with the React Compiler. ' +
"Libraries should provide a dedicated `react-server` entrypoint that wasn't compiled with the React Compiler.",
);
2 changes: 1 addition & 1 deletion scripts/error-codes/codes.json
Original file line number Diff line number Diff line change
Expand Up @@ -530,5 +530,5 @@
"542": "Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary.",
"543": "Expected a ResourceEffectUpdate to be pushed together with ResourceEffectIdentity. This is a bug in React.",
"544": "Found a pair with an auto name. This is a bug in React.",
"545": "The React Compiler is currently not supported in a React Server environment. Ensure that files importable with a `react-server` condition are not compiled with the React Compiler. Libraries should provide a dedicated `react-server` entrypoint that wasn't compiled with the React Compiler."
"545": "The React Compiler is currently not supported in a React Server environment. Ensure that modules imported with a `react-server` condition are not compiled with the React Compiler. Libraries should provide a dedicated `react-server` entrypoint that wasn't compiled with the React Compiler."
}

0 comments on commit cf6f1ca

Please # to comment.