I’m migrating a React project to use Typescript.
For CodeMirror, I’m getting this error:
‘CodeMirror’ cannot be used as a JSX component. Its type ‘typeof import(“…/node_modules/@uiw/react-codemirror/esm/index”)’ is not a valid JSX element type.ts(2786)
I’m using React 18.3.1. Does anyone knows what might be happening?