"async/await is not yet supported in Client Components, only Server Components." But I'm not doing that. So, why am I getting this? #7375
Replies: 1 comment
-
This discussion was automatically locked because the community moved to a new site. Please join us at vercel.community |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
I have two pages. Both of them are Server Components. When I load them individually, they work just fine, but when I click on an link to go to one another (or use the navigation arrows of the browser), I get the following 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.I'm not using "use client" in server components, nor I'm using client component stuff in server components (I think).
Here's the code of the first page:
And here's the code of the second page:
Example
No response
Steps to Reproduce
Just try to go back or go forward, using interval links of even the navigation arrows of the browser.
Beta Was this translation helpful? Give feedback.
All reactions