Next.js Discord

Discord Forum

Nextjs viewing my client component as a server component

Unanswered
Nile Crocodile posted this in #help-forum
Open in Discord
Nile CrocodileOP
I have a client component that loads normally when it is first opened but then it throws this error
Error: async/await is not yet supported in Client Components, only Server Components. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.
whenever a state changes.

3 Replies

Nile Crocodile
Do you have async components?
@Nile Crocodile Do you have `async` components?
Nile CrocodileOP
No, I don't.
The only component I'm using on the page is the books component and it's not async