react-codemirror icon indicating copy to clipboard operation
react-codemirror copied to clipboard

Module not found: Can't resolve 'react/jsx-runtime' in '.../node_modules/@uiw/react-codemirror/esm'

Open huowenxuan opened this issue 3 years ago • 4 comments

React version: 16.13.1

huowenxuan avatar Dec 21 '21 07:12 huowenxuan

i'm having this problem too but is on '.../node_modules/@uiw/react-codemirror/cjs''

PS: The react-codemirror version is the 4.3.1 (the latest at this moment)

Wendel-Macedo avatar Dec 27 '21 19:12 Wendel-Macedo

@Wendel-Macedo @huowenxuan Can you provide running examples?

e.g: https://codesandbox.io/embed/react-codemirror-example-codemirror-6-slvju?fontsize=14&hidenavigation=1&theme=dark

jaywcjlove avatar Dec 28 '21 01:12 jaywcjlove

Updating to react@latest fixed the problem for me.

rajeshdh avatar Jan 06 '22 21:01 rajeshdh

@Wendel-Macedo @huowenxuan Upgrade dependency react to 6.14.0+

"dependencies": {
  "@uiw/react-codemirror": "4.3.2",
  "react": "16.14.0",
  "react-dom": "16.14.0",
  "react-scripts": "4.0.3"
},

Example: https://codesandbox.io/embed/react-codemirror-example-codemirror-6-slvju?fontsize=14&hidenavigation=1&theme=dark

jaywcjlove avatar Jan 08 '22 06:01 jaywcjlove