Skip to content

[bug] unresolved import clap::Command #3549

@JonasKruckenberg

Description

@JonasKruckenberg

Describe the bug

The compilation of my app fail when trying to build tauri@1.0.0-rc.3 with the following error:

/Users/jonaskruckenberg/.cargo/registry/src/github.com-1ecc6299db9ec823/tauri-1.0.0-rc.3/src/api/cli.rs:12:29
   |
12 | use clap::{Arg, ArgMatches, Command, ErrorKind};
   |                             ^^^^^^^ no `Command` in the root

Reproduction

No response

Expected behavior

No response

Platform and versions

Operating System - Mac OS, version 12.2.0 X64
WARNING: no lock files found, defaulting to npm

Node.js environment
  Node.js - 16.13.2
  @tauri-apps/cli - 1.0.0-rc.4 (outdated, latest: 1.0.0-rc.5)
  @tauri-apps/api - Not installed

Global packages
  npm - 8.1.2
  pnpm - 6.30.1
  yarn - 3.1.0

Rust environment
  rustup - 1.24.3
  rustc - 1.58.1
  cargo - 1.58.0
  toolchain - stable-aarch64-apple-darwin 

App directory structure
/cypress
/dist
/node_modules
/public
/.vite
/src

App
  tauri - 1.0.0-rc.3 (no lockfile)
  tauri-build - no manifest (no lockfile)
  tao - no manifest (no lockfile)
  wry - no manifest (no lockfile)
  build-type - bundle
  CSP - default-src blob: data: filesystem: ws: wss: http: https: tauri: 'unsafe-eval' 'unsafe-inline' 'self' img-src: 'self'
  distDir - ../../plz-out/gen/frontend/dist/client
  devPath - http://localhost:3000/
  framework - React

(It appears tauri info doesn't like my workspace based setup 😅 )

Stack trace

N/A

Additional context

I'm using nix, so I'm pretty confident the issue is with me, not tauri. But just to make sure we should investigate this.
EDIT: Nope this is a real bug

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