Followed the docs and got this.
Error in ./~/react-draft-wysiwyg/dist/react-draft-wysiwyg.js
Module not found: 'draft-js' in /node_modules/react-draft-wysiwyg/dist
@ ./~/react-draft-wysiwyg/dist/react-draft-wysiwyg.js 6:497-516
Hi @leoc1f3r , its one of the peer dependency of the project. You need to have it in you project.
These are the peer dependencies: https://github.com/jpuri/react-draft-wysiwyg/blob/master/package.json#L58
So if using npm in any existing - working web project ( with react - react-dom ) just doing:
npm i --save draft-js react-draft-wysiwyg
Should be enough since immutable is already peer of draft-js.
immutable is peer for react-draft-wysiwyg also.
Would be nice to have this mentioned in the installation documentation ;)
Most helpful comment
Would be nice to have this mentioned in the installation documentation ;)