-
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
Keypress interaction with vite
doesn't work ("o"+"Enter" doesn't open web)
#9402
Comments
Do you happen to know what
I think this indicates |
Thanks for checking it out.
Sadly it seems to still not open the browser. (Other letters still do work, like h+enter). |
I'm having trouble finding any documentation about other environment variables that are needed by Could you try |
Hi, thank you for all the help!
|
Verify canary release
Link to code that reproduces this issue
https://github.com/shanike/turborepo-bug-repro
What package manager are you using / does the bug impact?
pnpm
What operating system are you using?
Linux
Which canary version will you have in your reproduction?
2.2.4-canary.8
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"
).I know Turborepo
v1
passes terminal input along to a dev server that was started through turbo dev. But, in Turborepo 2.2.3 it doesn't, which results with the following case:The part that works: The "gui" opens and runs as expected, and when pressing
"Enter"
on the persistent vite job, it focuses into it and allows typing.The part afterwards which doesn't work: Pressing the letter
"o"
followed by an"Enter"
-> nothing happens.Expected Behavior
After pressing the letter
"o"
followed by an"Enter"
in avite
job ->vite
opens the localhost web on the correct job's port. This does not happen with v2 of turbo.To Reproduce
vite
Now,
pnpm exec turbo dev
on apps/apps-awill run vite with turbo and won't open the web when pressing o + Enter
(But
5.
pnpm dev
will open the web when writing o + Enter)
Additional context
On turbo
v1.13.4
withexperimentalUI
turned on -> it DOES work: it opens the web when "interacting" with thevite
task and pressing o + Enter.This issue re-opens issue #8952.
Addressing comment #8952 (comment):
Thank you for your answer!
Unfortunately, we still encounter this strange behavior. The answers to your questions:
r + Enter
,u + Enter
,c + Enter
,q + Enter
andh + Enter
work correctlyloose
mode,open
command works as wellopen http://localhost:5173/
in the terminal opens the web browserThe text was updated successfully, but these errors were encountered: