Ionaru / easy-markdown-editor

EasyMDE: A simple, beautiful, and embeddable JavaScript Markdown editor. Delightful editing for beginners and experts alike. Features built-in autosaving and spell checking.
https://stackblitz.com/edit/easymde
MIT License
2.45k stars 319 forks source link

Cannot find type definition file for 'marked'. #320

Closed marekdedic closed 3 years ago

marekdedic commented 3 years ago

Describe the bug Hi, I'm getting the following error trying to compile a typescript project with easymde:

node_modules/easymde/types/easymde.d.ts(23,23): error TS2688: Cannot find type definition file for 'marked'.

To Reproduce Steps to reproduce the behavior:

  1. npm install easymde
  2. Run tsc

Expected behavior No TS errors

Version information

marekdedic commented 3 years ago

I think the solution is just to move @types/marked from devDependencies to dependencies...