Skip to content

fix(create): show helpful error for unknown vite: templates#1137

Closed
leno23 wants to merge 1 commit intovoidzero-dev:mainfrom
leno23:fix/unknown-builtin-template-validation
Closed

fix(create): show helpful error for unknown vite: templates#1137
leno23 wants to merge 1 commit intovoidzero-dev:mainfrom
leno23:fix/unknown-builtin-template-validation

Conversation

@leno23
Copy link

@leno23 leno23 commented Mar 25, 2026

Fixes issue #1128 where 'vp create vite:' crashes with ENOENT.

Added validation for builtin template names in the create command. When an unknown 'vite:' prefixed template is provided, the CLI now displays a clear error message listing the valid builtin templates instead of crashing with an ENOENT error.

Valid builtin templates are:

  • vite:monorepo
  • vite:application
  • vite:library
  • vite:generator

Fixes issue voidzero-dev#1128 where 'vp create vite:<unknown>' crashes with ENOENT.

Added validation for builtin template names in the create command. When
an unknown 'vite:' prefixed template is provided, the CLI now displays
a clear error message listing the valid builtin templates instead of
crashing with an ENOENT error.

Valid builtin templates are:
- vite:monorepo
- vite:application
- vite:library
- vite:generator
@netlify
Copy link

netlify bot commented Mar 25, 2026

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit 9165df4
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/69c33e95eefd9b0008c1f8c8

@fengmk2
Copy link
Member

fengmk2 commented Mar 25, 2026

fixed #1130

@fengmk2 fengmk2 closed this Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants