A simple, beautiful, and embeddable JavaScript Markdown editor. Delightful editing for beginners and experts alike. Features built-in autosaving and spell checking.
I've installed simplemde using npm install --save simplemde and I can confirm that my lock file install the dependencies such as codemirror.
When I then go to my .js file and use import { SimpleMDE } from "simplemde" my browser console raise CodeMirror.commands is undefined. I don't even instantiate an instance of the class, as soon as I import it this error is raised.
I use webpack to bundle my files a simple Webpack config:
I've installed simplemde using
npm install --save simplemde
and I can confirm that my lock file install the dependencies such ascodemirror
.When I then go to my .js file and use
import { SimpleMDE } from "simplemde"
my browser console raiseCodeMirror.commands is undefined
. I don't even instantiate an instance of the class, as soon as I import it this error is raised.I use webpack to bundle my files a simple Webpack config: