nuxt-icons icon indicating copy to clipboard operation
nuxt-icons copied to clipboard

nuxt-icon compatibility issue on Nuxt4 upgrade

Open Prakhar-compro opened this issue 5 months ago • 8 comments

Describe the bug I am getting this warning on upgrading nuxt version from 3.17.7 to 4.0.0 using codemod command

WARN  Module nuxt-icons is disabled due to incompatibility issues:
│  - [nuxt] Nuxt version ^3.0.0 is required but currently using 4.0.0

To Reproduce Upgrade nuxt version from 3.17.7 to 4.0.0 and then run pnpm install command

Expected behavior nuxt-icons compatibility version for nuxt 4 should be provided

Desktop (please complete the following information):

  • OS: [Windows 11]
  • Browser [chrome]

Prakhar-compro avatar Jul 29 '25 06:07 Prakhar-compro

@gitFoxCode Please advise if there is any expected date for library's compatible version with nuxt 4.

Prakhar-compro avatar Jul 29 '25 07:07 Prakhar-compro

I need this module for Nuxt 4 as well. Has anyone worked on this already? I'm going to test this module with Nuxt 4 today and provide feedback.

This PR would be a first step: #58

luksak avatar Aug 22 '25 11:08 luksak

I just tested the module with #58 applied. It works perfectly for my existing project. @gitFoxCode Can we please get this merged asap? This blocks me form upgrading to Nuxt 4.

luksak avatar Aug 22 '25 11:08 luksak

Ok, the PR was merged. Thank you @gitFoxCode ❤️

luksak avatar Aug 22 '25 14:08 luksak

@gitFoxCode Could you create a beta release, please?

luksak avatar Aug 22 '25 14:08 luksak

@gitFoxCode Could you create a beta release, please?

I ended up migrating to nuxt-svgo its activley maintained and somewhat based on nuxt-icons

if you do migrate just pay attention to :font-controlled="false"

Toocky avatar Sep 16 '25 22:09 Toocky

I don't think nuxt-svgo provides the same functionality. I migrated to nuxt-svg-icon-sprite which provides more similar features.

luksak avatar Sep 23 '25 22:09 luksak

as long as it does the job, svgo definitely wasn't a quick swap but that was mostly just a learning curve because it automatically reduces SVGs to font size by default which messed with all my components.

Toocky avatar Sep 23 '25 23:09 Toocky