ld-x / last-draft-js-plugins

last draft draft-js plugins
MIT License
95 stars 33 forks source link

Missing dependencies #8

Open cycleseven opened 7 years ago

cycleseven commented 7 years ago

After running yarn add last-draft-js-toolbar-plugin and serving the app I'm seeing the following errors. Looks like the packages linkify-it and tlds aren't specified in package.json. Adding them to my own package.json fixes the problem.

Module not found: Error: Can't resolve 'linkify-it' in '.../node_modules/draft-js-modal-plugin/lib/components/LinkModal'
 @ ./~/draft-js-modal-plugin/lib/components/LinkModal/index.js 22:17-38
 @ ./~/draft-js-modal-plugin/lib/index.js
Module not found: Error: Can't resolve 'tlds' in '.../node_modules/draft-js-modal-plugin/lib/components/LinkModal'
 @ ./~/draft-js-modal-plugin/lib/components/LinkModal/index.js 26:12-27
 @ ./~/draft-js-modal-plugin/lib/index.js
 @ ./~/last-draft-js-toolbar-plugin/lib/components/getModalByType/index.js
 @ ./~/last-draft-js-toolbar-plugin/lib/index.js
jimyaghi commented 7 years ago

it also complaints about the React version