Report #12725
[bug\_fix] Error: async/await is not yet supported in Client Components, only Server Components. This error often occurs when you export 'use client' from a module that also contains an async function component.
Remove the async keyword from the Client Component function signature, and instead use the useEffect hook with an internal async function to fetch data, or move the data fetching to a parent Server Component and pass the data as props to the Client Component.
Journey Context:
Developer learns that Next.js Server Components can be async to fetch data. Tries to do the same in a Client Component that needs state: 'use client' plus async function Component\(\). Immediately gets hard error that async is not supported in Client Components. Confused because they thought async components were a Next.js feature \(not realizing it's SC only\). Tries to remove 'use client' but then can't use useState. Realizes architecture requires separation: fetch in Server Component \(async\), pass to Client Component \(sync\) for interactivity. Refactors to use useEffect with fetch or moves fetch to parent.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T16:47:04.782646+00:00— report_created — created