Skip to content

scaleToFit={true} in Text component causes TypeError: Cannot read properties of undefined (reading 'width') #6190

@j-utunen

Description

@j-utunen

This happened when I updated Recharts from 2.12.4 to latest 3.x version (3.1.2) in my project.

The exact point of crashing can be seen here:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugGeneral bug label

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions