sstur / react-rte

Pure React rich text WYSIWYG editor based on draft-js.
https://react-rte.org
ISC License
2.86k stars 431 forks source link

Add React 18.x.x #441

Open wassimbj opened 2 years ago

wassimbj commented 2 years ago

I saw the same issue for react 17.x.x #415 so this maybe the same

λ npm install --save react-rte
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: ui@0.1.0
npm ERR! Found: react@18.1.0
npm ERR! node_modules/react
npm ERR!   react@"18.1.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"0.14.x || 15.x.x || 16.x.x || 17.x.x" from react-rte@0.16.5
npm ERR! node_modules/react-rte
npm ERR!   react-rte@"*" from the root project
abdullahbodur commented 2 years ago

A quick solution can be npm install --save react-rte --force

Chnapik2 commented 1 year ago

Has this issue evolved since? I would really like to use this library in my react 18 project, if someone has some input what has to be changed to support react 18, I may be even able to create a pull request with this update

sagarnagadiya commented 1 year ago

I am facing the same issue with react@18.2.0. I tried --force but issue is still same. any idea how to resolve it?

tannerhallman commented 1 year ago

add this into your package.json, although it's not recommended as its not confirmed to be working with react 18 by the maintainers.

overrides": {
    "react-rte": {
      "react": "^18.0.0",
      "react-dom": "^18.0.0"
    },
}