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
⨯ 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.
{link: function link}
^^^^^^^^^^^^^
at stringify (<anonymous>)
To Reproduce
Create a NextJS app using the /app router and create a new page (page.tsx).
Render the BlocksRendered inside of it and try to pass a custom component.
Expected Behaviour
The page should render without errors.
The text was updated successfully, but these errors were encountered:
What version of
@strapi/blocks-react-renderer
are you using?What's Wrong?
I am trying to use the BlocksRenderer inside a server component in my NextJS app. I want to pass a custom component for links.
I get the following error:
To Reproduce
Create a NextJS app using the /app router and create a new page (page.tsx).
Render the BlocksRendered inside of it and try to pass a custom component.
Expected Behaviour
The page should render without errors.
The text was updated successfully, but these errors were encountered: