Skip to content

Crash with Uncaught Error: TextRenderer(...): Nothing was returned from render.  #494

@christianwiese

Description

@christianwiese

Hello everyone,
we are using the latest version of react-markdown in combination with the remark-gfm plugin and are experiencing crashes when trying to display a bold list item with a checkbox. It actually happens with any formatted text after the checkbox.
Let me know if this is the right place to raise this issue or if this is rather remark-gfm related.

Your environment

Steps to reproduce

Use the following string in a markdown component.

- [ ] **important task**

Expected behavior

A bold list item with a checkbox is rendered.

Actual behavior

Uncaught Error: TextRenderer(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.
The above error occurred in the <TextRenderer> component:
    in TextRenderer (created by ReactMarkdown)
    in li (created by ListItem)
    in ListItem (created by ReactMarkdown)
    in ul (created by List)
    in List (created by ReactMarkdown)
    in Root (created by ReactMarkdown)
    in ReactMarkdown (at markdown.tsx:13)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions