Skip to content

vp create fails v0.1.14 #1218

@WahidN

Description

@WahidN

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.1

Used Package Manager

yarn

Logs

It doesn't ask me which package manager I want to choose

Validations

Metadata

Metadata

Assignees

Type

Priority

None yet

Effort

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions