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

Race condition when executing the command ""dev": "concurrently \"npm run serve\" \"tauri dev\"" on a vue/tauri application #534

Open
anijjar opened this issue Mar 2, 2025 · 2 comments

Comments

@anijjar
Copy link

anijjar commented Mar 2, 2025

Problem: running the above command on a powershell terminal results in several vue and tauri instances from being generated. The vue service seems to iterate its ports by 1 from 8080 until it crashes; the tauri service is set for 8081 and it does not report the port number but it also opens several windows after the command crashes/hangs.

Steps to replicate:

  • setup new vue project
  • setup tauri
  • install concurrency
  • call "npm run dev"

Notes:

  • Package files were kept default, except for the tauri config file where the url was changed.

  • Vue used the port 8080 and tauri used 8081. I suspect it has something to do with one of the two services locking a resource but I am not too sure.

I am going to avoid using concurrency for this project until this bug is worked out, but thank you in advance for addressing it. Let me know if you want some more data.

Cheers.

@gustavohenke
Copy link
Member

Please provide a self-contained reproducible repository and your system's information.

@anijjar
Copy link
Author

anijjar commented Mar 3, 2025

Hi. I figured out the Tauri command was calling "npm run serve" under the hood. The more you know 🤷🏾‍♂️

You can close the ticket.

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

2 participants