uiwjs / react-md-editor

A simple markdown editor with preview, implemented with React.js and TypeScript.
https://uiwjs.github.io/react-md-editor
MIT License
2.04k stars 149 forks source link

Imcompatible types Preact - NOT found bundle production #595

Open VigilioYonatan opened 7 months ago

VigilioYonatan commented 7 months ago

'"preact/compat"' has no exported member named 'ComponentType'. Did you mean 'Component'? file: nodemodules/.pnpm/react-markdown@8.0.7@types+react@18.2.38_react@18.2.0/node_modules/react-markdown/lib/complex-types.ts:1:40

Dependencies:

tsconfig to use components react in preact

 "paths": {
            "react": ["../node_modules/preact/compat/"],
            "react-dom": ["../node_modules/preact/compat/"]
        }

No error in mode development.i am using vite js and show that error when i build command i changed version @types/react@16 and 17 and not found. No show error in vscode lines. how can i fix that. thanks

jaywcjlove commented 7 months ago

@VigilioYonatan Please provide an example that can be reproduced, thanks example