You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".'
764
+
__DEV__
765
+
? 'Functions are not valid as a child of Client Components. This may happen if you return fn instead of <fn /> from render. Or maybe you meant to call this function rather than return it.'
766
+
: 'Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".'
? 'Functions are not valid as a child of Client Components. This may happen if you return Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.'
783
+
: 'Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".'
Copy file name to clipboardExpand all lines: scripts/error-codes/codes.json
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -361,7 +361,7 @@
361
361
"372": "Cannot call unstable_createEventHandle with \"%s\", as it is not an event known to React.",
362
362
"373": "This Hook is not supported in Server Components.",
363
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 unless you explicitly expose it by marking it with \"use server\".%s",
364
+
"375": "Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with \"use server\". Or maybe you meant to call this function rather than return it.%s",
365
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
366
"377": "BigInt (%s) is not yet supported in Client Component props.%s",
367
367
"378": "Type %s is not supported in Client Component props.%s",
@@ -490,5 +490,6 @@
490
490
"502": "Cannot read a Client Context from a Server Component.",
491
491
"503": "Cannot use() an already resolved Client Reference.",
492
492
"504": "Failed to read a RSC payload created by a development version of React on the server while using a production version on the client. Always use matching versions on the server and the client.",
493
-
"505": "Cannot render an Async Component, Promise or React.Lazy inside React.Children. We recommend not iterating over children and just rendering them plain."
493
+
"505": "Cannot render an Async Component, Promise or React.Lazy inside React.Children. We recommend not iterating over children and just rendering them plain.",
494
+
"506": "Functions are not valid as a child of Client Components. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.%s"
0 commit comments