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

Error Using Latest Monaco Package #16

Closed jdscolam closed 1 year ago

jdscolam commented 1 year ago

There's a conflicting dependency when trying to use the latest monaco editor (0.37.1) with vue-monaco-editor where the requirements is 0.35.0 (see below). Please update the package to accept future versions. Thanks!

npm ERR! While resolving: @guolao/vue-monaco-editor@1.1.3
npm ERR! Found: monaco-editor@0.37.1
npm ERR! node_modules/monaco-editor
npm ERR!   monaco-editor@"^0.37.1" from the root project
npm ERR!   peer monaco-editor@">= 0.21.0 < 1" from @monaco-editor/loader@1.3.3
npm ERR!   node_modules/@monaco-editor/loader
npm ERR!     @monaco-editor/loader@"^1.3.2" from @guolao/vue-monaco-editor@1.1.3
npm ERR!     node_modules/@guolao/vue-monaco-editor
npm ERR!       @guolao/vue-monaco-editor@"^1.1.3" from the root project
npm ERR!   1 more (monaco-editor-webpack-plugin)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer monaco-editor@"^0.35.0" from @guolao/vue-monaco-editor@1.1.3
npm ERR! node_modules/@guolao/vue-monaco-editor
npm ERR!   @guolao/vue-monaco-editor@"^1.1.3" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: monaco-editor@0.35.0
npm ERR! node_modules/monaco-editor
npm ERR!   peer monaco-editor@"^0.35.0" from @guolao/vue-monaco-editor@1.1.3
npm ERR!   node_modules/@guolao/vue-monaco-editor
npm ERR!     @guolao/vue-monaco-editor@"^1.1.3" from the root project
imguolao commented 1 year ago

Hi, there is an unfortunate news.

We depends on upstream(monaco-loader), but it is currently only supported up to 0.36.1(monaco-loader@v1.33), so we need to wait for upstream updates.

imguolao commented 1 year ago

fixed