Skip to content

Error: You're importing a component that needs useState. It only works in a Client Component but none of its parents are marked with "use client", so they're Server Components by default. #65665

Answered by icyJoseph
Mohit-au50 asked this question in Help
Discussion options

You must be logged in to vote

Maybe try with use client? Rather than use Client? It is case sensitive it'd seem: https://github.com/Mohit-au50/NextjsError/blob/main/app/ui/dashboard/income-card.tsx#L1

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Mohit-au50
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants