imguolao / monaco-vue

Use monaco-editor loaded from CDN in Vue 2&3.

Home Page:https://imguolao.github.io/monaco-vue/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error Using Latest Monaco Package

jdscolam opened this issue · comments

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
commented

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.

commented

fixed