jpuri / react-draft-wysiwyg

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

enhancement: Compatibility with react 17 #1116

Open nasatome opened 3 years ago

nasatome commented 3 years ago

React 17 Compatibility.

npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: app@0.1.0
npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR!   react@"17.0.2" from the root project
npm ERR!   peer react@">=0.14.0" from draft-js@0.11.7
npm ERR!   node_modules/draft-js
npm ERR!     draft-js@"^0.11.7" from the root project
npm ERR!     peer draft-js@"^0.10.x || ^0.11.x" from react-draft-wysiwyg@1.14.6
npm ERR!     node_modules/react-draft-wysiwyg
npm ERR!       react-draft-wysiwyg@"*" from the root project
npm ERR!   1 more (react-dom)
npm ERR! 
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" from react-draft-wysiwyg@1.14.6
npm ERR! node_modules/react-draft-wysiwyg
npm ERR!   react-draft-wysiwyg@"*" from the root project
arpitBhalla commented 3 years ago

Required

tyzion commented 3 years ago

I think they made it compatible. I too wasn't able to use it with React 17.0.2, but now it seems like it's working