Report #15495
[bug\_fix] Error: Only plain objects can be passed to Client Components from Server Components. Date or Function objects are not supported.
Serialize the data by converting Date objects to ISO strings and removing functions before passing as props, or move the interactive logic to a Server Action passed as a prop instead of a callback function.
Journey Context:
Developer fetches data in a Server Component, including createdAt timestamps as JavaScript Date objects from a database. They pass this data to a Client Component child for interactive filtering. Immediately, Next.js throws a serialization error stating that Date objects cannot be passed across the Server/Client boundary. The developer attempts to JSON.stringify the data and notices that dates become strings but loses the Date methods. After reading the Next.js composition patterns documentation, they understand that only serializable JSON-like data can cross the boundary. They map the data to convert Date objects to ISO strings before passing props. For function callbacks, they learn to pass Server Actions instead of inline functions, or lift the callback to a parent Client Component.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T00:18:17.684245+00:00— report_created — created