React-draft-wysiwyg: Module not found 'draft-js'

Created on 11 Jul 2017  路  5Comments  路  Source: jpuri/react-draft-wysiwyg

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

Most helpful comment

Would be nice to have this mentioned in the installation documentation ;)

All 5 comments

Hi @leoc1f3r , its one of the peer dependency of the project. You need to have it in you project.

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 ;)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jpuri picture jpuri  路  4Comments

gyarasu picture gyarasu  路  4Comments

trongbang86 picture trongbang86  路  3Comments

gyarasu picture gyarasu  路  4Comments

Fireprufe15 picture Fireprufe15  路  4Comments