[Vue warn]: Error in mounted hook: "Error: Cannot find module 'monaco-editor'"
PeterlitsZo opened this issue · 2 comments
PeterlitsZo commented
When I use the vue-monaco
, it raise this warning in my electrion application.
What should I do? I installed monaco-editor
and monaco-editor-webpack-plugin
but do not work for me.
ivansieder commented
@PeterlitsZo do you have monaco-editor-webpack-plugin
with a Version >= 2.x.x? If so, try downgrading to the latest 1.x.x version.
PeterlitsZo commented
@ivansieder Well, I found that this lib do not maintain for a long time, so I am using monaco-editor-webpack-plugin(^2.0.0) and monaco-editor(^0.21.2) directly. It works good and I think... emmm... maybe use it directly is a good idea.