Skip to content

[bug] create-tauri-app is broken #3409

@icewind

Description

@icewind

Describe the bug

After the update I'm unable to launch the created application on MacOS(did not tested on other OS though). Newly created application fails to start with an error

error: failed to load manifest for dependency `tauri`

Caused by:
  failed to read `/Users/icewind/Temp/test-tauri/node_modules/core/tauri/Cargo.toml`
  
Caused by:
  No such file or directory (os error 2)

I tried several different templates including vanilla, react, vite(with svelte), and svelte the result is the same.

Reproduction

Run the following list of commands:

$ npx create-tauri-app
$ cd tauri-app
$ npm install
$ npm run tauri dev

Expected behavior

Newly created application launches.

Platform and versions

> test-tauri@1.0.0 tauri
> tauri "info"


Operating System - Mac OS, version 11.6.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.1
  @tauri-apps/api - Not installed

Global packages
  npm - 8.1.2
  pnpm - Not installed
  yarn - 1.22.17

Rust environment
  rustc - 1.58.1
  cargo - 1.58.0

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

App directory structure

App
  tauri.rs - path:"../../../../../../../core/tauri" [unknown version] (no lockfile)
  build-type - build
  CSP - unset
  distDir - ../dist
  devPath - ../dist

Stack trace

No response

Additional context

I reproduced it several times. create-tauri-app creates the application then, sometimes, after npm run tauri dev the process hangs for a while. Then I killed the process and after that all the further launches are failing with this error

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