Skip to content

[bug] create-tauri-app caused error via pnpm with vite #4

Description

@kiochan

Describe the bug

If use create-tauri-app package to create vue app via pnpm with create-vite, it will returns a error message insteads of create package use vite template.

Reproduction

pnpm create tauri-app

and choose create-vite (vanilla, vue, react, svelte, preact, lit) (https://vitejs.dev/guide /#scaffolding-your-first-vite-project)

then choose vue-ts

it will returns:

 ERROR   ERROR  Unknown option: 'template'
Did you mean 'test-pattern'? Use "--config.unknown=value" to force an unknown option.
For help, run: pnpm help create
Error with command: pnpm
Error: Error: Command failed with exit code 1: pnpm create vite tauri-app --template vue-ts
    at C:\Users\kiochan\AppData\Local\Temp\dlx-23528\5\node_modules\.pnpm\create-tauri-app@1.0.0-rc.2\node_modules\create-tauri-app\dist\index.js:62:15
    at Generator.throw (<anonymous>)
    at rejected (C:\Users\kiochan\AppData\Local\Temp\dlx-23528\5\node_modules\.pnpm\create-tauri-app@1.0.0-rc.2\node_modules\create-tauri-app\dist\index.js:39:65)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Expected behavior

It should create package with command:

pnpm create vite tauri-app -- --template vue-ts

insteads of

pnpm create vite tauri-app --template vue-ts

Platform and versions

Operating System - Windows, version 10.0.19044 X64
Webview2 - 98.0.1108.56
Visual Studio Build Tools - Not installed
WARNING: no lock files found, defaulting to npm

Node.js environment
  Node.js - 16.5.0
  @tauri-apps/cli - 1.0.0-rc.5
  @tauri-apps/api - Not installed

Global packages
  npm - 7.19.1
  pnpm - 6.31.0
  yarn - 1.22.10

Rust environment
  rustup - 1.24.3
  rustc - 1.58.1
  cargo - 1.58.0
  toolchain - stable-x86_64-pc-windows-gnu

App directory structure
/tauri-app

App

Stack trace

No response

Additional context

No response

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions