RSC Error when using Card in NextJS 13 page #2068
Replies: 1 comment
-
I read this in the documentation when I started with NextUI but completely forgot about it... just need to import from the individual components and it works fine with Next.js:
|
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
-
NextUI docs states: As NextUI components use React hooks, we added the use client; at build time, so you can import them directly in your React Server Components (RSC).
However I have a NextJS 13.4.2 app and a trying to use the Card component in an app page but I get the following error:
My page looks like this:
I can solve this by adding
use client
in my page but I'm just wondering if this is a bug?Beta Was this translation helpful? Give feedback.
All reactions