uiwjs / uiwjs/react-codemirror

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

Open
#742 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.3k
Forks
161
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the published @uiw/react-codemirror 3.2.10 package and the failing import at ./node_modules/@uiw/react-codemirror/esm/index.js:7. Compare the React version required by react/jsx-runtime with the declared peerDependencies and verify the result against a React 16.14.0 setup. Done means the package's supported React range and emitted runtime requirements agree, with the reported build error resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.