react-codemirror
react-codemirror copied to clipboard
Module not found: Can't resolve 'react/jsx-runtime' in '.../node_modules/@uiw/react-codemirror/esm'
React version: 16.13.1
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 @huowenxuan Can you provide running examples?
e.g: https://codesandbox.io/embed/react-codemirror-example-codemirror-6-slvju?fontsize=14&hidenavigation=1&theme=dark
Updating to react@latest fixed the problem for me.
@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