NikulinIlya / vue-easymde

📝 Vue-EasyMDE - use easy-markdown-editor with vue.js.
MIT License
21 stars 10 forks source link

Vite + Vue2 and vue-easymde@2.0.0 #17

Open ocomsoft opened 2 years ago

ocomsoft commented 2 years ago

I am trying to upgrade my Vue2 (not Vue3) to use Vite and when I load the project using vue-easymde@2.0.0 and easymde@2.15.1-12.0 I get the following error in the console in Chrome Dev tools.

Uncaught SyntaxError: The requested module '/static/node_modules/vue-easymde/node_modules/easymde/src/js/easymde.js?v=2cdb057b' does not provide an export named 'default'

I am not sure how to 'fix' this -seem vite is more stricter than webpack and vue-cli. I tried going to easymde@2.8.0 and 2.0.0 and no difference,

ocomsoft commented 2 years ago

Ok on further investigation I think I found the problem. Seems easymde is not a module (or doesn't have anything exported) https://github.com/Ionaru/easy-markdown-editor/issues/262