You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vite's dev server is interactive. It accepts commands to perform operations like open the browser (o) and restart the server (r).
Turborepo 1.11.3 passes terminal input along to a dev server that was started through turbo dev.
Turborepo 1.12.3 however no longer seems to pass the terminal input along to the dev server instance. The keyboard input is echoed to the terminal, but does not seem to be passed along to the persistent task. This is a unfortunate disruption to a convenient workflow.
Expected Behavior
After starting the vite dev server via turbo, pressing o, then Enter opens the browser.
To Reproduce
Install the vite example and run yarn dev; once the servers start, hit o and press Enter. Notice that nothing happens.
jacobcarpenter
changed the title
Turborepo 1.12.x breaks Vite interactive dev server
Turborepo 1.12.x stopped passing command input to Vite dev server
Feb 9, 2024
Turbo 1.11 unintentionally spawned all tasks with inherited stdin. This was fixed in 1.12 and now that turbo is spawning tasks hooked up to a psuedoterminals we cannot spawn tasks that inherit turbo's stdin.
Proper support for interactive tasks is coming with 1.13.
Verify canary release
Link to code that reproduces this issue
https://github.com/vercel/turbo/tree/main/examples/with-vite
What package manager are you using / does the bug impact?
Yarn v1
What operating system are you using?
Mac
Which canary version will you have in your reproduction?
[email protected]
Describe the Bug
Vite's dev server is interactive. It accepts commands to perform operations like open the browser (
o
) and restart the server (r
).Turborepo 1.11.3 passes terminal input along to a dev server that was started through
turbo dev
.Turborepo 1.12.3 however no longer seems to pass the terminal input along to the dev server instance. The keyboard input is echoed to the terminal, but does not seem to be passed along to the persistent task. This is a unfortunate disruption to a convenient workflow.
Expected Behavior
After starting the vite dev server via turbo, pressing
o
, thenEnter
opens the browser.To Reproduce
Install the vite example and run
yarn dev
; once the servers start, hito
and press Enter. Notice that nothing happens.Next run
... or whatever the appropriate command to downgrade the workspace root dependency in your preferred package manager is.
Then repeat the
yarn dev
followed byo
and Enter. Notice that the browser opens to the dev server.Additional context
No response
The text was updated successfully, but these errors were encountered: