nuxt / icon

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

Doesn't it work with nuxt 2 and nuxt bridge? #21

Closed stephenjason89 closed 1 year ago

stephenjason89 commented 1 year ago

The docs did mention that this package is nuxt 3 ready. I believe it was not mentioned that it isn't compatible with nuxt 2 and bridge

image

May I clarify if this is intended for nuxt 3 only?

Thank you

szulcus commented 1 year ago

It's hard to create a project compatible with Nuxt 2 and Nuxt 3, because they are very different from each other. Here you can preview if the module is compatible: https://modules.nuxtjs.org/?q=icon. If you need a solution for Nuxt 2 I recommend https://www.npmjs.com/package/@nuxtjs/svg-sprite.

bmulholland commented 1 year ago

For every module that has to be switched at the same time as upgrading to Nuxt 3, it magnifies the effort and risk needed to make that upgrade. I wish more attention was put into making the upgrade path a smooth one.