simplemde-markdown-editor
simplemde-markdown-editor copied to clipboard
Fix problems with `[email protected]`
The 4.0.0 release of the marked
package contains a breaking change that - guess what - breaks the SimpleMDE's script. The main change is that the marked
package does NOT provide a default export anymore.
For more information please see the release notes for [email protected]
.
@WesCossick, @sparksuite-bot, it would be great if you could look into this 🙂
'simplemde.js?ebfb:1417 Uncaught TypeError: marked is not a function' I have the same problem and I solve it by overwriting the installation(npm install [email protected]), but I still hope to fix it by merging the branch or modifying the import mode in code.
I can't believe all the dependencies in package.json
are specified as complete wildcards *
. That's absolutely shocking. It means issues like this will continue to happen because any major, breaking changes in any dependencies will be happily pulled in when installing this package.
The project looks dead anyway since it's been 6 years since any updates. Such a shame, it looks like a wonderful editor.
Indeed @aptkingston, the project is dead, not updated for a pretty long time... It's somehow comforting, that fixing the marked
dependency on the ^3.0.8
version solves the problem efficiently.
BTW: You could be interested in the resolutions
field in the Yarn's configuration.
Yea that definitely solves the problem in this case. I actually found https://github.com/Ionaru/easy-markdown-editor which is a fork of this project which is maintained and actually works! So I'm using that now and it's great.
Thank's for the griff, @aptkingston! I didn't ever see this package before, don't know how! Thank you!