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

I use vue@3.3.9 but i don't install by npm. #40

Closed Jacky-YC closed 5 months ago

Jacky-YC commented 9 months ago

Could not resolve dependency: @guolao/vue-monaco-editor@"*" from the root project

Conflicting peer dependency: vue@3.3.9 node_modules/vue peer vue@">= 2.5 < 2.7" from @vue/composition-api@1.7.2 node_modules/@vue/composition-api peerOptional @vue/composition-api@"^1.7.1" from @guolao/vue-monaco-editor@1.4.0 node_modules/@guolao/vue-monaco-editor @guolao/vue-monaco-editor@"*" from the root project

Fix the upstream dependency conflict, or retry this command with --force or --legacy-peer-deps to accept an incorrect (and potentially broken) dependency resolution.

imguolao commented 9 months ago

What are your npm and node versions?

@vue/composition-api is set to optional here, but it didn't take effect when you installed it?