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
vp migrate fails when there is no package.json #2801
In an invalid project, Vite+ should tell that this isnt a valid project instead of failing
Reproduction
Steps to reproduce
mkdir test
cd test
vp migrate
error
ENOENT: no such file or directory, open '/Users/alichter/Programming/demo-day/package.json'
Error: ENOENT: no such file or directory, open '/Users/alichter/Programming/demo-day/package.json'
at Object.readFileSync (node:fs:483:20)
at readJson (file:///Users/alichter/.vite-plus/1.0.0-rc.0/node_modules/.pnpm/[email protected]_@[email protected][email protected]_/node_modules/vite-plus/dist/migration/bin.js:2617:22)
at planVitestV5Migration (file:///Users/alichter/.vite-plus/1.0.0-rc.0/node_modules/.pnpm/[email protected]_@[email protected][email protected]_/node_modules/vite-plus/dist/migration/bin.js:2921:15)
at main (file:///Users/alichter/.vite-plus/1.0.0-rc.0/node_modules/.pnpm/[email protected]_@[email protected][email protected]_/node_modules/vite-plus/dist/migration/bin.js:3916:21) {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/Users/alichter/Programming/demo-day/package.json'
}
Activity
fix(migrate): report missing package.json (voidzero-dev#2821)
chore(deps): update rust crates (#1780)