You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(deps): declare vue as a peer dependency - #7529
📖 Documentation (updates to the documentation or readme)
🐞 Bug fix (a non-breaking change that fixes an issue)
👌 Enhancement (improving an existing functionality)
✨ New feature (a non-breaking change that adds functionality)
🧹 Chore (updates to the build process or auxiliary tools and libraries)
⚠️ Breaking change (fix or feature that would cause existing functionality to change)
📚 Description
The published component declarations import from vue, but vue was only a devDependency. With pnpm's enableGlobalVirtualStore, @nuxt/ui is linked from a store directory that holds only its declared dependencies, so TypeScript can't resolve vue there and every U* component types as any.
This adds vue as a required peer with ^3.5.0, since the runtime already relies on 3.5 APIs like useTemplateRef. I checked it against a global virtual store install: vue doesn't resolve from the linked package before, and resolves with the same peer applied through packageExtensions. The lockfile doesn't change.
This declares Vue as a peer dependency so TypeScript can resolve component types under pnpm's global virtual store. No merge-blocking risk remains.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: adding vue as a peer dependency in package.json. It is a fix to the dependency declarations, which matches the raw summary and the objectives.
Description check
The description explains the problem (published declarations import from vue, which was only a devDependency), the fix (vue added as a ^3.5.0 peer), and links issue #7527. It relates directly to the o…
Linked Issues check
[#7527] The issue asks that @nuxt/ui declare vue so that component declarations resolve under pnpm's global virtual store. The proposed fix is a vue peer dependency of ^3.5.0. At the reviewed head, pa…
Out of Scope Changes check
The supplied summary reports one changed line (+1/-0) in package.json, which adds the vue peer dependency. This change directly implements the objective of #7527. No unrelated changes are reported. Th…
Full details: Description check
Explanation
The description explains the problem (published declarations import from vue, which was only a devDependency), the fix (vue added as a ^3.5.0 peer), and links issue #7527. It relates directly to the one-line package.json change.
Full details: Linked Issues check
Explanation
[#7527] The issue asks that @nuxt/ui declare vue so that component declarations resolve under pnpm's global virtual store. The proposed fix is a vue peer dependency of ^3.5.0. At the reviewed head, package.json lists "vue": "^3.5.0" under peerDependencies, without a peerDependenciesMeta optional flag, which matches the issue's fix. The issue's other undeclared imports (@vue/reactivity, @tanstack/table-core, embla-carousel, nuxt, eslint) are stated as additional context, not as requested work, so their absence does not fail this assessment. The issue requests no automated test, and none is required here. The issue's reproduction passes with the same peer applied through packageExtensions, which supports the fix. Evidence limit: the base blob of package.json could not be read, so the +1/-0 change size relies on the supplied summary. The head content confirms the required declaration.
Full details: Out of Scope Changes check
Explanation
The supplied summary reports one changed line (+1/-0) in package.json, which adds the vue peer dependency. This change directly implements the objective of #7527. No unrelated changes are reported. The base blob of package.json could not be read, so the change size is based on the summary, not a text diff. The head content shows no unrelated package.json edits that could be identified from the readable content.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Reviewing files that changed from the base of the PR and between 6c162f7 and 112a09d.
Files selected for processing: 1
package.json
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔗 Linked issue
Resolves #7527
❓ Type of change
📚 Description
The published component declarations import from
vue, butvuewas only a devDependency. With pnpm'senableGlobalVirtualStore,@nuxt/uiis linked from a store directory that holds only its declared dependencies, so TypeScript can't resolvevuethere and everyU*component types asany.This adds
vueas a required peer with^3.5.0, since the runtime already relies on 3.5 APIs likeuseTemplateRef. I checked it against a global virtual store install:vuedoesn't resolve from the linked package before, and resolves with the same peer applied throughpackageExtensions. The lockfile doesn't change.📝 Checklist