uiwjs / uiwjs/react-md-editor

Imcompatible types Preact - NOT found bundle production

Open
#595 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.9k
Forks
201
Avg merge
12m
Merged PRs (30d)
1

Description

'"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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the production Vite build with the listed Preact, React type, and @uiw/react-md-editor dependencies and the tsconfig paths for react and react-dom. Start at react-markdown/lib/complex-types.ts, where the missing ComponentType export is reported; done means the production build completes without this type error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vite
Domain
build-system, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.