react-md-editor icon indicating copy to clipboard operation
react-md-editor copied to clipboard

Imcompatible types Preact - NOT found bundle production

Open VigilioYonatan opened this issue 2 years ago • 1 comments

'"preact/compat"' has no exported member named 'ComponentType'. Did you mean 'Component'? file: node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/react-markdown/lib/complex-types.ts:1:40

Dependencies:

  • "preact": "^10.18.2",
  • "@types/react": "^18.2.38",
  • "@uiw/react-md-editor": "^3.25.6"
  • "@types/react-dom": "^18.2.17",

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

VigilioYonatan avatar Nov 22 '23 20:11 VigilioYonatan

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

jaywcjlove avatar Nov 22 '23 21:11 jaywcjlove