Skip to content

Commit cf6f1ca

Browse files
committed
"files importable" > "modules imported"
1 parent dd5eecd commit cf6f1ca

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

compiler/packages/react-compiler-runtime/src/index.react-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77

88
throw new Error(
99
'The React Compiler is currently not supported in a React Server environment. ' +
10-
'Ensure that files importable with a `react-server` condition are not compiled with the React Compiler. ' +
10+
'Ensure that modules imported with a `react-server` condition are not compiled with the React Compiler. ' +
1111
"Libraries should provide a dedicated `react-server` entrypoint that wasn't compiled with the React Compiler.",
1212
);

packages/react/src/ReactCompilerRuntimeServer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99

1010
throw new Error(
1111
'The React Compiler is currently not supported in a React Server environment. ' +
12-
'Ensure that files importable with a `react-server` condition are not compiled with the React Compiler. ' +
12+
'Ensure that modules imported with a `react-server` condition are not compiled with the React Compiler. ' +
1313
"Libraries should provide a dedicated `react-server` entrypoint that wasn't compiled with the React Compiler.",
1414
);

scripts/error-codes/codes.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,5 +530,5 @@
530530
"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.",
531531
"543": "Expected a ResourceEffectUpdate to be pushed together with ResourceEffectIdentity. This is a bug in React.",
532532
"544": "Found a pair with an auto name. This is a bug in React.",
533-
"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."
533+
"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."
534534
}

0 commit comments

Comments
 (0)