Next.js Discord

Discord Forum

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

Unanswered
Blanc de Hotot posted this in #help-forum
Open in Discord
Avatar
Blanc de HototOP
hello all,

i seem to be getting this error message appear, but its getting triggered very randomly.... for instance i would append <div clasnname=''''/> with some text and i would receive the error. I would understand if i was in a client component trying to do something async etc, but im not. Its almost as if awaiting on props from the async server component is causing the client to produce this error.

Has anyone had any similar experiences with random error messages appearing with the above when working on for instance a client component and the server component that embeds the client component has not changed... and b - if there is any way to better debug this, it seems to be a bit of a witchhunt in order to locate the underlying issue

thanks

0 Replies