Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]: [@strapi/block-react-renderer] No component found for modifier "children" #61

Open
juanalcp opened this issue Jan 21, 2025 · 0 comments
Labels
issue: bug Issue reporting a bug

Comments

@juanalcp
Copy link

What version of @strapi/blocks-react-renderer are you using?

  • npm version: 10.9.2
  • node version: 22.13
  • react version: 19.0.0
  • @strapi/block-react-renderer version: 1.0.1
  • browser: Chrome

What's Wrong?

When using @strapi/block-react-renderer with Strapi v5 and React v19, the library incorrectly handles children. Instead of processing them as expected, it treats all elements as generic children, resulting in the following error:
[@strapi/block-react-renderer] No component found for modifier "children".

To Reproduce

  • Install and configure Strapi v5.
  • Set up a React project using React v19.
  • Add @strapi/block-react-renderer to the project.
  • Configure a block in Strapi and attempt to render it using the library.

Observe that the library incorrectly processes the block and treats its content as children, leading to the error.

Expected Behaviour

The library should handle children correctly by rendering the expected components without treating all elements generically as children.

@juanalcp juanalcp added the issue: bug Issue reporting a bug label Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: bug Issue reporting a bug
Projects
None yet
Development

No branches or pull requests

1 participant