-
Notifications
You must be signed in to change notification settings - Fork 127
Labels
Description
Describe the bug
vp migrate reports "Detected husky <9.0.0 — please upgrade to husky v9+ first, then re-run migration." even when husky v9 is installed. The check reads the version string from package.json devDependencies and uses semver.coerce() on it. When the version is "latest", semver.coerce("latest") returns null, which falls back to "0.0.0" and incorrectly satisfies < 9.0.0.
Reproduction
https://github.com/mildlyfunctional/vp-migrate-repro
Steps to reproduce
Steps to reproduce:
- Clone the reproduction repo
- Run vp migrate
- See: Detected husky <9.0.0 — please upgrade to husky v9+ first, then re-run migration.
System Info
Environment:
Version 24.14.0
Source lts
Tool Paths:
node /Users/mrwokkel/.vite-plus/js_runtime/node/24.14.0/bin/node
npm /Users/mrwokkel/.vite-plus/js_runtime/node/24.14.0/bin/npm
npx /Users/mrwokkel/.vite-plus/js_runtime/node/24.14.0/bin/npx
vp v0.1.13
Local vite-plus:
vite-plus Not found
Tools:
vite Not found
rolldown Not found
vitest Not found
oxfmt Not found
oxlint Not found
oxlint-tsgolint Not found
tsdown Not found
Environment:
Package manager pnpm v10.32.1
Node.js v24.14.0Used Package Manager
npm
Logs
Validations
- Read the Contributing Guidelines.
- Check that there isn't already an issue for the same bug.
- Confirm this is a Vite+ issue and not an upstream issue (Vite, Vitest, tsdown, Rolldown, or Oxc).
- The provided reproduction is a minimal reproducible example.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Fields
Give feedbackPriority
None yet
Effort
None yet