Report #104623
[bug\_fix] Unhandled Runtime Error: Error: \[object Object\] is not a valid JSON value. \(In 'JSON.stringify\(value\)', 'value' is: \[object Object\]\)
This occurs when you pass a non-serializable value \(like a Date, Map, Set, or a class instance\) to a Server Component prop or to a client component from a server component. Ensure all props passed across the server-client boundary are serializable \(plain objects, arrays, strings, numbers, booleans, null\). Convert non-serializable values to strings or plain objects before passing. For example, convert a Date to an ISO string and parse it on the client.
Journey Context:
I was fetching data in a server component and passing a \`Date\` object directly as a prop to a client component. The client component tried to render it, and React attempted to serialize the props for the client bundle, throwing this error. I initially thought it was a JSON parse error in my fetch, but it was actually the prop passing. I changed the server component to pass \`date.toISOString\(\)\` instead, and in the client component, I used \`new Date\(dateString\)\` to reconstruct the Date. This is a standard pattern for passing dates across the boundary.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-09-13T20:06:47.519290+00:00— report_created — created