Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imcompatible types Preact - NOT found bundle production #595

Open
VigilioYonatan opened this issue Nov 22, 2023 · 1 comment
Open

Imcompatible types Preact - NOT found bundle production #595

VigilioYonatan opened this issue Nov 22, 2023 · 1 comment

Comments

@VigilioYonatan
Copy link

VigilioYonatan commented Nov 22, 2023

'"preact/compat"' has no exported member named 'ComponentType'. Did you mean 'Component'? file: node_modules/.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:

  • "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 VigilioYonatan changed the title Imcompatyble types Preact - NOT found bundle production Imcompatible types Preact - NOT found bundle production Nov 22, 2023
@jaywcjlove
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants