async Client Component React Origin: On your device Last updated 14 Oct 2026

Error: async/await is not yet supported in Client Components, only Server Components.

A component marked "use client" was declared async.

Exact message you may see async/await is not yet supported in Client Components
Seen on: React

Meaning

Client components can’t be async functions. Fetch data in a Server Component and pass it down, or fetch inside useEffect/React Query in the client.

Common causes

  • "use client" file exporting an async component
  • Copying a server component into a client file

⚡ Quick fix

  1. Remove async and fetch in useEffect / a data library
  2. Or remove "use client" and keep it a Server Component

Detailed fix by platform

React

  1. export default async function Page() { const data = await getData(); return <ClientList data={data} />; }

How to diagnose

  1. File — "use client" + async?
  2. Data — Where should fetching happen?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: On your device. Errors that are often confused with or caused by this one (click to open):

Can't resolve 'fs' — Module not found: Can't resolve 'fs' (Next.js / webpack 5) (React)Can't resolve 'fs'Dynamic server usage — Error: Dynamic server usage: Route /x couldn't be rendered statically because it used `cookies` (React)Dynamic server usageFunctions cannot be passed — Error: Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server". (React)Functions cannot be p…Hydration failed — Error: Hydration failed because the initial UI does not match what was rendered on the server (React)Hydration failedneeds useState — You're importing a component that needs useState. It only works in a Client Component but none of its parents are marked with "use client" (React)needs useStatenext/image hostname — Error: Invalid src prop on `next/image`, hostname "x" is not configured under images in your `next.config.js` (React)next/image hostnameNextRouter was not mounted — Error: NextRouter was not mounted. (React)NextRouter was not mo…Prerender error — Error occurred prerendering page "/x". Read more: https://nextjs.org/docs/messages/prerender-error (React)Prerender errorasync Cli…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.