tauri: [bug] Couldn't recognize the current folder as a Tauri project

Describe the bug

hi, I am trying to upgrade from beta to the latest version, I am using the tauri vite plugin and the author of the project believes the problem is related to the cli. can you please take a look at the issue here: https://github.com/amrbashir/vite-plugin-tauri/issues/2#issuecomment-1046566383 thank you!

thread '' panicked at 'Couldn't recognize the current folder as a Tauri project. It must contain a tauri.conf.json or tauri.conf.json5 file in any subfolder.', src\helpers\app_paths.rs:64:4
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

Reproduction

No response

Expected behavior

builds

Platform and versions

Windows 10
@tauri-apps/cli v1.0.0-rc.5

Stack trace

No response

Additional context

project structure:

dist
node_modules
public
srs
src-tauri

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 19 (3 by maintainers)

Commits related to this issue

Most upvoted comments

In my case, I had a .gitignore file in ~ which ignored the entire project. This causes the CLI to fail, even if src-tauri/tauri.conf.json exists in my cwd. This worked with tauri v1, and broke with v2 for me

This is still broken. Can we reopen this?

Still not working, have created local git repo, no git repo in ~, still the same error in a fresh-created project.

Yeah you shouldn’t gitignore the src-tauri folder.

For the android development, check out the tao-wry channel on our Discord.

Can you provide the steps you used to create your project or a test project on GitHub? I couldn’t reproduce this with the vanilla Vite template. Also make sure you don’t have the src-tauri folder on your .gitignore file.