Next.js Discord

Discord Forum

Error: async/await is not yet supported

Answered
Oriental chestnut gall wasp posted this in #help-forum
Open in Discord
Avatar
Oriental chestnut gall waspOP
why do i get this error? Are async components not compatible with pages router?

i didnt add "use client" anywhere
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.
Answered by Asian black bear
Are async components not compatible with pages router?
No.
View full answer

2 Replies

Avatar
Asian black bear
Are async components not compatible with pages router?
No.
Answer
Avatar
Oriental chestnut gall waspOP
I see, thanks