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
211 stars 21 forks source link

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

Closed swo026 closed 10 months ago

swo026 commented 10 months ago

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

imguolao commented 10 months 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 10 months ago

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