Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
icewind opened this issue Feb 11, 2022 · 5 comments
Closed

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

icewind opened this issue Feb 11, 2022 · 5 comments

Comments

@icewind
Copy link

icewind commented Feb 11, 2022

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

@lmachens
Copy link

lmachens commented Feb 11, 2022

Same issue here on Windows 10.

1.0.0-rc.0 works fine for me.

Logs of 1.0.0-rc.1:

npm run tauri dev

> weitsicht@0.0.0 tauri
> tauri "dev"

error: failed to load manifest for dependency `tauri`

Caused by:
  failed to read `E:\dev\weitsicht\node_modules\core\tauri\Cargo.toml`

Caused by:
  The system cannot find the path specified. (os error 3)
npm run tauri info

> weitsicht@0.0.0 tauri
> tauri "info"


Operating System - Windows, version 10.0.19044 X64
Webview2 - 98.0.1108.50
Visual Studio Build Tools:
   - Visual Studio Build Tools 2019
   - Visual Studio Build Tools 2017
WARNING: no lock files found, defaulting to npm

Node.js environment
  Node.js - 16.13.0
  @tauri-apps/cli - 1.0.0-rc.1
  @tauri-apps/api - Not installed

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

Rust environment
  rustc - 1.58.1

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

App directory structure
/dist

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

@nothingismagick
Copy link
Member

this looks a little "off" to me:
tauri.rs - path:"../../../../../../../core/tauri" [unknown version] (no lockfile)

@lucasfernog
Copy link
Member

Checking it atm.

@lucasfernog
Copy link
Member

Found the issue, I need to add some checks in case you don't have a .gitignore file. For now you could run git init and add a .gitignore file ignoring /node_modules. Fix will be released in an hour though.

@lucasfernog
Copy link
Member

The fix was published guys, thanks for reporting it!

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

No branches or pull requests

4 participants