-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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] New 2.0 project not recognized as a Tauri project #12135
Comments
Can you simply try again? Looks like you tried it while our release workflow was still running. Also, did you try other names than |
I've tried other names yes, same thing. Just ran it again for a new project called |
Do you have a .gitignore file somewhere that may include the tauri.conf.json file? That's the only thing that i can think of rn |
Nope, just to cover all the bases I checked the root of the project and all subdirs' .gitignores and none had the tauri.conf.json file included in them. Tried deleting all (2, one in the root of the project and one in the src-tauri directory) .gitignores in case something else was being ignored and still got the same errors. |
The ones i had in mind would be in parent dirs, or a global gitignore. |
was similarly trying. for last hour and half. Expected the default Tauri + React page to open up when executing |
Ah! That was it, for some reason I had a .gitignore file in $HOME that was literally: > cat ~/.gitignore
* Removing that file fixed my issue. Thank you! |
Describe the bug
I'm attempting to create a new Tauri 2.0 project. I've been using v1 for a while now and wanted to play around with 2.0 before migrating my existing project over. When creating a new project with the
yarn create tauri-app
command, I get a project, install the dependencies, but when I runyarn tauri android init
oryarn tauri dev
I get the following error:I followed the guides on starting a new project. I'm using the version of Node and npm shown in the prerequisites and the latest versions of everything else. My v1 project still runs just fine so I'm fairly certain it's either an issue with the latest version or my system.
Reproduction
Full steps and log:
Expected behavior
Expected the default Tauri + React page to open up when executing
yarn tauri dev
and theyarn tauri android init
to execute properly.Full
tauri info
outputStack trace
Additional context
I've attempted to use npm, pnpm, bun, and cargo instead of yarn and have gotten the same error.
Directory structure pre
yarn install
:More system info if relevant:
Yarn was installed from the AUR and not through npm.
The text was updated successfully, but these errors were encountered: