Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Hi, I am using Next.js's template with app router. This is my code

image

and I am getting this error now,
⨯ Error: Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server". Or maybe you meant to call this function rather than return it. {can: function can} ^^^^^^^^^^^^ at stringify (<anonymous>) at stringify (<anonymous>) digest: "3058848200" GET /_next/static/chunks/app/lucide-react.js.map 404 in 2251ms

Could anyone please tell me what I am missing here?

You must be logged in to vote

Replies: 1 comment

Comment options

Helllo @MDAmir159, can you provide a reproducible example repo?

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
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.