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

0.41.0 The input prompt is not displayed. #27

Closed duolabmeng6 closed 1 year ago

duolabmeng6 commented 1 year ago

I found that the code prompt of version 36 is normal. If you upgrade to 41, the code prompt will not exist.. Excuse me, can it be repaired?

app.use(VueMonacoEditorPlugin, {
  paths: {
    // The default CDN config
    vs: 'https://cdn.jsdelivr.net/npm/monaco-editor@0.36.0/min/vs'
  },
})
image
imguolao commented 1 year ago

No problem found, work normal. Try 0.38.0?

duolabmeng6 commented 1 year ago

This is my project.https://github.com/duolabmeng6/GoEasyDesigner Online preview address https://go-easy-designer.vercel.app/
Your project has helped me a lot. I hope the teacher can help me take a look.

Modify the document GoEasyDesigner/frontend/src/main.js Set to 41 There is a problem.

        vs: 'https://cdn.jsdelivr.net/npm/monaco-editor@0.41.0/min/vs'
image

38 is normal.

image
duolabmeng6 commented 1 year ago

These two versions are not good.

    "@guolao/vue-monaco-editor": "^1.2.0",
    "monaco-editor": "^0.41.0",

There is no problem with these two versions.

    "@guolao/vue-monaco-editor": "1.2.0",
    "monaco-editor": "0.40.0",
imguolao commented 1 year ago

Yep, I found problem too, the recommended version will be rolled back to version 0.38, the default version is still 0.33.

Monaco-editor 0.40 and above may has some breaking changes that the cause of monaco-loader can not loading monaco-editor completelly, loader to be updated.

duolabmeng6 commented 1 year ago

Thank You