Skip to content

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

@juanalcp

Description

@juanalcp

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue: bugIssue reporting a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions