You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting an error in App Router. Error: Functions are not valid as a child of Client Components. This may happen if you return children instead of <children /> from render. Or maybe you meant to call this function rather than return it.
#8
Open
DaX-523 opened this issue
Jul 16, 2024
· 4 comments
Even when i copy pasted the code i got this error
Error: Functions are not valid as a child of Client Components. This may happen if you return children instead of from render. Or maybe you meant to call this function rather than return it.
<... className=... width="800" height=... center=... zoom=... children={function children}>
Is this related to using App Router???
Because when i cloned the repository it was working fine with pages directory
The issue arises in this snippet
Even when i copy pasted the code i got this error Error: Functions are not valid as a child of Client Components. This may happen if you return children instead of from render. Or maybe you meant to call this function rather than return it. <... className=... width="800" height=... center=... zoom=... children={function children}> Is this related to using App Router??? Because when i cloned the repository it was working fine with pages directory The issue arises in this snippet
Even when i copy pasted the code i got this error
Error: Functions are not valid as a child of Client Components. This may happen if you return children instead of from render. Or maybe you meant to call this function rather than return it.
<... className=... width="800" height=... center=... zoom=... children={function children}>
Is this related to using App Router???
Because when i cloned the repository it was working fine with pages directory
The issue arises in this snippet
Any help would be great :)
The text was updated successfully, but these errors were encountered: