Open kartonrad opened 3 weeks ago
As a workaround, edit BuildTask.kt, find the 'executable' variable, and change "yarn-1.22.22" to 'yarn'
The build will succeed ✨
Thank you Tauri Team for your amazing work coordinating this monstrous software stack 😮
Describe the bug
The android build fails with: A problem occurred starting process 'command 'yarn-1.22.22.cmd''
Reproduction
Install yarn using corepack:
Or install yarn using npm
Both methods do not work as expected
Then run cargo create-tauri-app --beta Then yarn tauri android init Then yarn tauri android dev
The process will crash
Expected behavior
Tauri should set the packageManager field in package.json, then just run
yarn --version
and check if the version constraint was respected.If not, it should print an error which tells the user to install yarn using corepack, which respects the packageManager field and will even install arbritrary yarn versions based on the field.
If the version check succeeds, it should just run 'yarn ...'
Full
tauri info
outputStack trace
No response
Additional context
No response