Report #13424
[bug\_fix] Passing Server Component to Client Component as direct child causes serialization error or unexpected client bundle
Do not import the Server Component into the Client Component file. Instead, import both in a parent Server Component and pass the Server Component as a children prop or slot to the Client Component.
Journey Context:
Developer has a Client Component \(marked "use client"\) that needs to wrap a Server Component. They try to import the Server Component directly into the Client Component file and render it as \`\`. This either throws an error about not being able to pass functions/objects from Server to Client \(if trying to pass as prop\), or silently converts the Server Component into a Client Component, bloating the bundle. Developer learns that the App Router architecture forbids importing Server Components into Client Components because Client Components are the "leaves" of the tree. The solution is composition: the parent \(Server Component\) imports both, then renders \`\`, passing the Server Component as children, which React can serialize as a special reference.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T18:44:39.484415+00:00— report_created — created