diff --git a/packages/react-server/src/ReactFizzServer.js b/packages/react-server/src/ReactFizzServer.js index f607e85516f88..e1e180f2f77aa 100644 --- a/packages/react-server/src/ReactFizzServer.js +++ b/packages/react-server/src/ReactFizzServer.js @@ -907,7 +907,7 @@ function pushServerComponentStack( if (!__DEV__) { // eslint-disable-next-line react-internal/prod-error-codes throw new Error( - 'createServerComponentStack should never be called in production. This is a bug in React.', + 'pushServerComponentStack should never be called in production. This is a bug in React.', ); } // Build a Server Component parent stack from the debugInfo.