vue-monaco icon indicating copy to clipboard operation
vue-monaco copied to clipboard

[Vue warn]: Error in mounted hook: "Error: Cannot find module 'monaco-editor'"

Open PeterlitsZo opened this issue 5 years ago • 2 comments

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.

PeterlitsZo avatar Nov 13 '20 00:11 PeterlitsZo

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

ivansieder avatar Nov 26 '20 14:11 ivansieder

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

PeterlitsZo avatar Nov 26 '20 15:11 PeterlitsZo