Skip to content

[Bug] PowerShell 7 fails to create a project when using the command vp create vite -- --template react-ts #3080

Description

@a145789

Describe the bug

When running:

vp create vite -- --template react-ts

in Windows 11 with PowerShell 7.6.6, vp fails with:

VITE+ - The Unified Toolchain for the Web

error: unexpected argument '--template' found

  tip: to pass '--template' as a value, use '-- --template'

Usage: vp create [TEMPLATE] [OPTIONS] [-- TEMPLATE_OPTIONS]

For more information, try '--help'.

Expected: --template react-ts should be forwarded to the vite template.

Actual: vp treats --template as its own argument and errors out.

The same command works in bash and cmd. It only fails in PowerShell 7.

Reproduction

No standalone reproduction repository; the minimal reproduction is the command-line steps below.

Steps to reproduce

  1. Open PowerShell 7.6.6 on Windows 11.

  2. Run:

    vp create vite -- --template react-ts

    Observe the error:

    VITE+ - The Unified Toolchain for the Web
    
    error: unexpected argument '--template' found
    
      tip: to pass '--template' as a value, use '-- --template'
    
    Usage: vp create [TEMPLATE] [OPTIONS] [-- TEMPLATE_OPTIONS]
    
    For more information, try '--help'.
    

System Info

vp env current
Node.js:
  Version    24.22.0
  Source     lts
  Bin Path   D:\vite-plus\js_runtime\node\24.22.0\node.exe
  Installed  true
  Mode       managed

vp v1.2.0

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  Not found
  Node.js          v24.22.0

Shell: PowerShell 7.6.6 - C:\Program Files\PowerShell\7\pwsh.exe
OS: Windows 11 10.0.26300
CPU: (22) x64 Intel(R) Core(TM) Ultra 7 155H
Memory: 31.47 GB

Used Package Manager

pnpm

Logs

Validations

Activity

  1. added theissue type on Oct 16, 2026
  2. jong-kyung commented on Oct 16, 2026

    @jong-kyung
    Collaborator

    Could you try vp create vite '--' --template react-ts?

  3. jong-kyung commented on Oct 16, 2026

    @jong-kyung
    Collaborator

    @fengmk2 Can we fix PowerShell escape issue?

    Additional Context:
    https://discord.com/channels/1475973262193459293/1554394910541742173

  4. a145789 commented on Oct 16, 2026

    @a145789
    Author

    3. Could you try vp create vite '--' --template react-ts?

    Thanks, that works now! I appreciate it.

    Some additional information: vp create vite -- --template react-ts is the example shown in vp create -h, so I copied and pasted it directly. It was a bit confusing that it failed in PowerShell 7, since that looks like the intended usage.

  5. fengmk2 commented on Oct 16, 2026

    @fengmk2
    Member

    Let me try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Fields

Priority

None yet

Effort

None yet

Target date

None yet

Start date

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions