Skip to content

TS2590: Expression produces a union type that is too complex to represent. #880

Description

@cherepanov

With @types/react v19 typecheck is broken

@types/react@19.0.7
@types/react-dom@19.0.3
tsc@5.0.3

TS2590: Expression produces a union type that is too complex to represent.

Reproduction

import {NumericFormat} from 'react-number-format'

const Component = (...props: any) => <NumericFormat {...props} />

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions