Next.js Error: Event handlers cannot be passed to Client Component props
Server Component attempted to pass a JS function (`onClick`) across the RSC serialization boundary.
Runs locally in browser
Free · No login
Independently Verified 2026-11-25
v4.1.0
Identifier: Next.js Error
Platform: JavaScript
Common Root Causes:
- Server Component attempted to pass a JS function (`onClick`) across the RSC serialization boundary.
Interactive Diagnostic Checklist
Verified Solutions:
- Pass only JSON-serializable props or Server Actions (`"use server"`) from Server to Client Components.
Safe Diagnostic Command:
Inspect props passed from Server Component to Client Component
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.
Technical Explanation
Server Component attempted to pass a JS function (`onClick`) across the RSC serialization boundary. Recommended diagnostic: `Inspect props passed from Server Component to Client Component`. Remediation: Pass only JSON-serializable props or Server Actions (`"use server"`) from Server to Client Components.
Worked Examples
- Run `Inspect props passed from Server Component to Client Component` to verify root cause before applying the remediation.
Limitations & Assumptions
- Always verify configuration changes in staging or with dry-run flags (e.g. `nginx -t`) before reloading production services.
Source References & Verification
Resource ID: err-nextjs-server-component-async-client · Independently verified: 2026-11-25