Report #11444
[bug\_fix] Error: Cannot render a Server Component inside a Client Component
Do not import a Server Component directly into a Client Component file. Instead, pass the Server Component as a \`children\` prop from a parent Server Component to the Client Component. The Client Component can then render \`\{children\}\` without knowing the children's implementation.
Journey Context:
Developer has a layout structure: a Client Component \`InteractiveWrapper\` \(with "use client"\) needs to wrap content. Developer tries to import a Server Component \`ServerContent\` directly inside \`InteractiveWrapper.tsx\` and render it. Next.js throws an error that Server Components cannot be rendered inside Client Components. Developer initially thinks they must convert everything to Client Components, losing SSR benefits. Researching composition patterns, developer learns that Server Components can be passed as props \(children\) to Client Components. Refactoring so the parent Server Component renders \`\`, the Client Component receives \`children\` and renders it, solving the error while preserving server-rendering for \`ServerContent\`.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T13:19:41.795268+00:00— report_created — created