Skip to content

React 19 类型错误:找不到命名空间“JSX”。 #1238

Description

@xiaoxiyao

// >>> Customize Input
/** @private Internal usage. Do not use in your production. */
getInputElement?: () => JSX.Element;
/** @private Internal usage. Do not use in your production. */
getRawInputElement?: () => JSX.Element;

Activity

  1. nrps9909 commented on Aug 26, 2026

    @nrps9909
    Contributor

    This is fixed on current master. #1235 (merged later on July 3, 2026) replaced both getInputElement?: () => JSX.Element and getRawInputElement?: () => JSX.Element with React.ReactElement; current head 29e9dda retains those React 19-compatible types. Maintainers may be able to close this as resolved.\n\nAI assistance disclosure: Codex was used to trace the reported lines to the merged commit and verify the current source. I checked the cited diff and present declarations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions