plantain-00 / schema-based-json-editor

A reactjs and vuejs component of schema based json editor.
MIT License
168 stars 38 forks source link

'MarkdownIt' only refers to a type, but is being used as a value here #4

Closed hectorj closed 6 years ago

hectorj commented 6 years ago

Hi!

Trying schema-based-json-editor version 5.1.2, I get an error when compiling my TypeScript:

 error  in /path/to/my/project/node_modules/schema-based-json-editor/libs.d.ts

(8,37): error TS2693: 'MarkdownIt' only refers to a type, but is being used as a value here.

According to my package-lock.json, my version of @types/markdown-it is 0.0.4 (as required).

I'm still a beginner with TypeScript so I don't really know where that is coming from.

plantain-00 commented 6 years ago

you can set "skipLibCheck": true in tsconfig.json to disable the error for now, and I will fix this later.

plantain-00 commented 6 years ago

v5.1.4 should fix this

hectorj commented 6 years ago

Fixed indeed, thanks a lot!