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.15k stars 155 forks source link

Can't resolve 'devlop' for ./node_modules/hast-util-from-html/lib/index.js on version 4.0.1 #602

Open joemaoniu opened 10 months ago

joemaoniu commented 10 months ago

i am run craco app, with "react": "^17.0.2", "react-dom": "^18.2.0", and "typescript": "~4.1.5" when i yarn add @uiw/react-md-editor I got the error:

./node_modules/hast-util-from-html/lib/index.js
Module not found: Can't resolve 'devlop' in '/Users/xx/Documents/xxxx/node_modules/hast-util-from-html/lib'

as you can see the devlop is actually missing in the node_modules folder

image

jaywcjlove commented 10 months ago

@joemaoniu You can give me an example that reproduces the error, and I can help you troubleshoot it for free.

joemaoniu commented 10 months ago

my craco config and package json?

jaywcjlove commented 10 months ago

@joemaoniu like this -> https://codesandbox.io/embed/markdown-editor-for-react-izdd6?fontsize=14&hidenavigation=1&theme=dark