Skip to content

Can't resolve 'react/jsx-runtime' in version 3.2.10 #742

@SayGoodBey

Description

@SayGoodBey

In version 3.2.10 of @uiw/react-codemirror, the library uses react/jsx-runtime, which requires React 17.0.2 or higher. However, its peerDependencies specifies >=16.8.0. The project uses React 16.14.0, causing a build error: Can't resolve 'react/jsx-runtime' at ./node_modules/@uiw/react-codemirror/esm/index.js:7. How should this be resolved?

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions