Skip to content

fix: update Nuxt 4 peer dependency and @nuxt/kit constraints#206

Open
anzzyspeaksgit wants to merge 1 commit intoDevelopmint:mainfrom
anzzyspeaksgit:fix/issue-203
Open

fix: update Nuxt 4 peer dependency and @nuxt/kit constraints#206
anzzyspeaksgit wants to merge 1 commit intoDevelopmint:mainfrom
anzzyspeaksgit:fix/issue-203

Conversation

@anzzyspeaksgit
Copy link
Copy Markdown

Summary

Updates the package.json to fully support Nuxt 4 alongside Nuxt 3 by loosening the @nuxt/kit dependency constraint.

Problem

Closes #203

Even after #199 updated the module compatibility property, package managers (and Nuxt 4 itself) could still log warnings or duplication errors because @nuxt/kit was strictly pinned to ^3.2.0, and Nuxt wasn't defined in peerDependencies.

Solution

  • Updated @nuxt/kit to allow both ^3.2.0 || ^4.0.0.
  • Added nuxt: ^3.0.0 || ^4.0.0 to peerDependencies as recommended in the Nuxt 4 Module Upgrade Guide.

Testing

  • Package metadata updated.
  • Resolves perfectly without duplication when paired with Nuxt 4.

This PR was created with AI assistance.

Closes Developmint#203

Updates package dependencies to officially support Nuxt 4 alongside Nuxt 3.
- Loosens `@nuxt/kit` to `^3.2.0 || ^4.0.0`
- Explicitly adds `nuxt: ^3.0.0 || ^4.0.0` to `peerDependencies`

This ensures package managers properly resolve Nuxt 4 versions without complaining about incompatibilities.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nuxt-purgecss compatibility issue on Nuxt4 upgrade

1 participant