nuxt / icon

The <Icon> component, supporting Iconify, Emojis and custom components.
https://stackblitz.com/edit/nuxt-icon-playground?file=app.vue
MIT License
874 stars 38 forks source link

Unmet Peer Dependency vue@>=3 #59

Closed TixMartin closed 1 year ago

TixMartin commented 1 year ago

I installed nuxt-icon with yarn add nuxt-icon

Then, I got the following warning:

warning "nuxt-icon > @iconify/vue@4.1.0" has unmet peer dependency "vue@>=3".

I use node v16.19.1 and in my dependencies, I have "nuxt": "^3.2.3", "nuxt-icon": "^0.3.2"

I checked vue's version with yarn list --pattern vue and got: yarn list v1.22.19 ├─ @iconify/vue@4.1.0 ├─ @unhead/vue@1.1.16 ├─ @vitejs/plugin-vue-jsx@3.0.0 ├─ @vitejs/plugin-vue@4.0.0 ├─ @vue/babel-helper-vue-transform-on@1.0.2 ├─ @vue/babel-plugin-jsx@1.1.1 ├─ @vue/compiler-core@3.2.47 ├─ @vue/compiler-dom@3.2.47 ├─ @vue/compiler-sfc@3.2.47 ├─ @vue/compiler-ssr@3.2.47 ├─ @vue/devtools-api@6.5.0 ├─ @vue/reactivity-transform@3.2.47 ├─ @vue/reactivity@3.2.47 ├─ @vue/runtime-core@3.2.47 ├─ @vue/runtime-dom@3.2.47 ├─ @vue/server-renderer@3.2.47 ├─ @vue/shared@3.2.47 ├─ @vueuse/head@1.1.15 ├─ vue-bundle-renderer@1.0.2 ├─ vue-devtools-stub@0.1.0 ├─ vue-router@4.1.6 └─ vue@3.2.47

So vue@>=3 exists but I still get that warning.

I tried yarn upgrade and npx nuxi@latest upgrade but none helped.

Everything seems to be working, so should I fix it and how, or ignore it?

Atinux commented 1 year ago

You can ignore it :)