Skip to content

Commit b9993e2

Browse files
committed
Update error messages
1 parent d927cb2 commit b9993e2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

scripts/error-codes/codes.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@
338338
"348": "ensureListeningTo(): received a container that was not an element node. This is likely a bug in React.",
339339
"349": "Expected a work-in-progress root. This is a bug in React. Please file an issue.",
340340
"350": "Cannot read from mutable source during the current render without tearing. This may be a bug in React. Please file an issue.",
341-
"351": "Unsupported server component type: %s",
341+
"351": "Unsupported Server Component type: %s",
342342
"352": "React Lazy Components are not yet supported on the server.",
343343
"353": "A server block should never encode any other slots. This is a bug in React.",
344344
"354": "getInspectorDataForViewAtPoint() is not available in production.",
@@ -360,12 +360,12 @@
360360
"371": "Text string must be rendered within a <Text> component.\n\nText: %s",
361361
"372": "Cannot call unstable_createEventHandle with \"%s\", as it is not an event known to React.",
362362
"373": "This Hook is not supported in Server Components.",
363-
"374": "Event handlers cannot be passed to client component props. Remove %s from these props if possible: %s\nIf you need interactivity, consider converting part of this to a client component.",
364-
"375": "Functions cannot be passed directly to client components because they're not serializable. Remove %s (%s) from this object, or avoid the entire object: %s",
365-
"376": "Only global symbols received from Symbol.for(...) can be passed to client components. The symbol Symbol.for(%s) cannot be found among global symbols. Remove %s from this object, or avoid the entire object: %s",
366-
"377": "BigInt (%s) is not yet supported in client component props. Remove %s from this object or use a plain number instead: %s",
367-
"378": "Type %s is not supported in client component props. Remove %s from this object, or avoid the entire object: %s",
368-
"379": "Refs cannot be used in server components, nor passed to client components.",
363+
"374": "Event handlers cannot be passed to Client Component props.%s\nIf you need interactivity, consider converting part of this to a Client Component.",
364+
"375": "Functions cannot be passed directly to Client Components because they're not serializable.%s",
365+
"376": "Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for(%s) cannot be found among global symbols.%s",
366+
"377": "BigInt (%s) is not yet supported in Client Component props.%s",
367+
"378": "Type %s is not supported in Client Component props.%s",
368+
"379": "Refs cannot be used in Server Components, nor passed to Client Components.",
369369
"380": "Reading the cache is only supported while rendering.",
370370
"381": "This feature is not supported by ReactSuspenseTestUtils.",
371371
"382": "This query has received more parameters than the last time the same query was used. Always pass the exact number of parameters that the query needs.",

0 commit comments

Comments
 (0)