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

draft-js and immutable not installed #441

Open zeg-io opened 7 years ago

zeg-io commented 7 years ago

Apparently there are a couple requirements that aren't installed with 1.10.8

$ npm i
npm WARN draftjs-utils@0.8.6 requires a peer of draft-js@^0.10.x but none is installed. You must install peer dependencies yourself.
npm WARN draftjs-utils@0.8.6 requires a peer of immutable@^3.x.x || 4.x.x but none is installed. You must install peer dependencies yourself.
npm WARN react-draft-wysiwyg@1.10.8 requires a peer of draft-js@^0.10.x but none is installed. You must install peer dependencies yourself.
npm WARN react-draft-wysiwyg@1.10.8 requires a peer of immutable@3.x.x || 4.x.x but none is installed. You must install peer dependencies yourself.
ivya-ciklum commented 7 years ago

I've just installed draft-js package manually, then it works. But I think normally the package.json should contain this dependency.

jpuri commented 7 years ago

DraftJS and ImmutableJS are peer dependencies for the library.