imguolao / monaco-vue

Use monaco-editor loaded from CDN in Vue 2&3, no need to bundling.
https://imguolao.github.io/monaco-vue/
MIT License
234 stars 21 forks source link

index.js:314 Uncaught (in promise) TypeError: monacoRef.value.editor.onDidChangeMarkers is not a function #37

Closed swo026 closed 1 year ago

swo026 commented 1 year ago

env:vue3; @guolao/vue-monaco-editor ^1.4.0", image image image image

imguolao commented 1 year ago

What is the Monaco editor version?

You can try rolling back the version to 0.38.0.

app.use(VueMonacoEditorPlugin, {
  paths: {
    vs: 'https://cdn.jsdelivr.net/npm/monaco-editor@0.38.0/min/vs'
  },
})
swo026 commented 1 year ago

I use 0.43.0,I don not know happened, after restarting service , it work... Thanks for your response