simplemde-markdown-editor icon indicating copy to clipboard operation
simplemde-markdown-editor copied to clipboard

Fix problems with `[email protected]`

Open staszek998 opened this issue 3 years ago • 6 comments

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].

staszek998 avatar Dec 07 '21 13:12 staszek998

@WesCossick, @sparksuite-bot, it would be great if you could look into this 🙂

staszek998 avatar Dec 17 '21 07:12 staszek998

'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.

marui325 avatar Jan 27 '22 06:01 marui325

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.

aptkingston avatar Feb 02 '22 09:02 aptkingston

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.

staszek998 avatar Feb 02 '22 11:02 staszek998

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.

aptkingston avatar Feb 02 '22 15:02 aptkingston

Thank's for the griff, @aptkingston! I didn't ever see this package before, don't know how! Thank you!

staszek998 avatar Feb 02 '22 15:02 staszek998