-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Vite application stopped immediately after start with turbo >= 1.12.0
#7279
Comments
I tried canary releases of Everything is working fine on |
I confirm the problem, encountered the same situation when upgrading |
@ihmpavel Can you confirm that the task you're running is marked with |
@chris-olszewski I can confirm, that after adding {
"$schema": "https://turborepo.org/schema.json",
"pipeline": {
"start": {
"cache": false,
+ "persistent": true
},
... What is interesting, and I did not spot that until creating this issue is, that we do some magic with I am still not sure, whether it is a bug or not, because of the different behavior of Docker and I suppose of the breaking change between |
I'm not sure I'm following what's happening. Did you have two |
Just encountered the issue with version |
@chris-olszewski My behavior with Docker was identical with behavior described by @Fish1 |
@Fish1 So the |
Adding persistent: true fixed the issue for me. That image is of before adding persistent true. It didn't print out that my vite server ended. It just continued like everything was working fine. |
Closing this as it can be solved with adding |
After closing running apps (backend + vite) with
Does somebody has the same issue? Full log (only Vite):
|
@ihmpavel I am experiencing the same thing. Did you managed to resolve this? Also turbo executable stays as a running in the background.
|
@Dragomir-Ivanov Because of @chris-olszewski Should I file new issue for this? |
I'm facing an issue where I have a task that uses dependsOn because my package (which I filter) depends on other packages inside the monorepo. However, when I set "persistent": true, I encounter the following error: Error: × "@test-api/vue#dev" is a persistent task, "vue-example#dev" cannot depend on it Anyone know how to handle this situation without downgrading turbo to v1 ? Thank you |
Also having this issue, feeling like a dummy for upgrading now :/ |
Verify canary release
What package manager are you using / does the bug impact?
Yarn v1
What operating system are you using?
Mac (
Apple M1 Pro
,14.2.1
)Which canary version will you have in your reproduction?
1.12.3-canary.0
Describe the Bug
Our applications use Vite with config
Everything was working fine, until we upgraded from
turbo@1.11.x
toturbo@1.12.x
After starting the application, console starts successfully, but loading
localhost:3040
or current local IP shows in browserERR_CONNECTION_REFUSED
.It looks like the application is stopped immediately, after the startup
Expected Behavior
I can confirm, that running
yarn start
in the corresponding folder withoutturbo
starts the application and shows the same console output. Only difference is, that the console/port is still running and not closed immediatelly.To Reproduce
turbo
in rootAdditional context
Reverting back to
v1.11.3
is working without issue. Tried allv1.12.x
versions, but does not work on any.Edit:
persistent: true
fixes the problem, but it is not consistent - look at Vite application stopped immediately after start withturbo >= 1.12.0
#7279 (comment)The text was updated successfully, but these errors were encountered: