jpuri / react-draft-wysiwyg

A Wysiwyg editor build on top of ReactJS and DraftJS. https://jpuri.github.io/react-draft-wysiwyg
MIT License
6.41k stars 1.16k forks source link

Compatibility with React 18 #1254

Open ls-miles-rostami opened 2 years ago

ls-miles-rostami commented 2 years ago

When installing react-draft-wysiwyg with React 18 you get the following error:

npm ERR! Could not resolve dependency: npm ERR! peer react@"0.13.x || 0.14.x || ^15.0.0-0 || 15.x.x || ^16.0.0-0 || ^16.x.x || ^17.x.x" from react-draft-wysiwyg@1.14.7 npm ERR! node_modules/react-draft-wysiwyg npm ERR! react-draft-wysiwyg@"*" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

allicanseenow commented 2 years ago

There is a current PR for this: https://github.com/jpuri/react-draft-wysiwyg/pull/1245