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
- fix(cli): manual config lookup to handle gitignored folders, fixes #3527 — committed to tauri-apps/tauri by FabianLars 4 years ago
- fix(cli): manual config lookup to handle gitignored folders, fixes #3527 (#4224) — committed to tauri-apps/tauri by FabianLars 4 years ago
- Search gitignored directories for config files Fixes #3527 — committed to rmburg/tauri by rmburg 2 years ago
- fix(cli): Tauri project path resolution, closes #3527 #12779 alternative approach to #12791 as suggested by @Fabian-Lars — committed to tauri-apps/tauri by lucasfernog 2 years ago
- fix(cli): Tauri project path resolution, closes #3527 #12779 (#12871) — committed to getong/tauri by lucasfernog 2 years ago
In my case, I had a .gitignore file in
~which ignored the entire project. This causes the CLI to fail, even ifsrc-tauri/tauri.conf.jsonexists in my cwd. This worked with tauri v1, and broke with v2 for meThis 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-wrychannel 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.