-
Notifications
You must be signed in to change notification settings - Fork 151
vp create fails v0.1.14 #1218
Copy link
Copy link
Open
Labels
Description
Describe the bug
When I want to create a new project using vp create I get
Failed to generate code: ENOENT: no such file or directory, open '/Users/username/Documents/projects/test-app/package.json'
Reproduction
Steps to reproduce
- run
vp create - choose application
- after "Set up pre-commit hooks to run formatting, linting, and type checking with
auto-fixes?" it fails with the following error:
ENOENT: no such file or directory, open '/Users/username/Documents/projects/test-app/package.json'
Error: ENOENT: no such file or directory, open '/Users/username/Documents/projects/test-app/package.json'
at Object.readFileSync (node:fs:440:20)
at readJsonFile (file:///Users/username/.vite-plus/0.1.14/node_modules/.pnpm/vite-plus@0.1.14_vite@8.0.3_@emnapi+core@1.9.1_@emnapi+runtime@1.9.1_/node_modules/vite-plus/dist/global/package-Y1UTfJnZ.js:881:21)
at editJsonFile (file:///Users/username/.vite-plus/0.1.14/node_modules/.pnpm/vite-plus@0.1.14_vite@8.0.3_@emnapi+core@1.9.1_@emnapi+runtime@1.9.1_/node_modules/vite-plus/dist/global/package-Y1UTfJnZ.js:895:27)
at setPackageName (file:///Users/username/.vite-plus/0.1.14/node_modules/.pnpm/vite-plus@0.1.14_vite@8.0.3_@emnapi+core@1.9.1_@emnapi+runtime@1.9.1_/node_modules/vite-plus/dist/global/create.js:3243:2)
at executeBuiltinTemplate (file:///Users/username/.vite-plus/0.1.14/node_modules/.pnpm/vite-plus@0.1.14_vite@8.0.3_@emnapi+core@1.9.1_@emnapi+runtime@1.9.1_/node_modules/vite-plus/dist/global/create.js:3521:2)
at async main (file:///Users/username/.vite-plus/0.1.14/node_modules/.pnpm/vite-plus@0.1.14_vite@8.0.3_@emnapi+core@1.9.1_@emnapi+runtime@1.9.1_/node_modules/vite-plus/dist/global/create.js:4174:12) {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/Users/username/Documents/projects/test-app/package.json'
}
Failed to generate code: ENOENT: no such file or directory, open '/Users/username/Documents/projects/test-app/package.json'
System Info
vp v0.1.14
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 yarn v1.22.22
Node.js v24.14.1Used Package Manager
yarn
Logs
It doesn't ask me which package manager I want to chooseValidations
- 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