Report #15299
[bug\_fix] async/await is not yet supported in Client Components
Move the async data fetching to a parent Server Component and pass data as props, or convert the component to a Server Component if it doesn't need browser APIs
Journey Context:
Developer creates a component that fetches data using \`const data = await fetch\(...\)\` directly in the component body, following the pattern used in Server Components. They mark it with "use client" because they need interactivity. During \`next build\`, the compiler throws an error stating async/await is not supported in Client Components. Developer tries to make the function async anyway, causing a hard build failure. They check the Next.js error message link and learn that Client Components cannot be async functions. The solution is to refactor: create a Server Component \(async\) that fetches the data, then passes it as props to the Client Component which handles the interactive UI. This leverages the proper composition pattern for App Router.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T23:44:57.177536+00:00— report_created — created