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

Vite trigger MacOS system dialog to locate 'undefined' application when Google Chrome is not running #11205

7 tasks done
pvljz opened this issue Dec 5, 2022 · 2 comments · Fixed by #11406
7 tasks done


Copy link

pvljz commented Dec 5, 2022

Describe the bug

Vite feature to open running instance of Chrome browsers doesn't fail immediately when Chrome is not running (openedBrowser is undefined), instead MacOS system dialog "Choose Application" - "Where is undefined?" is displayed. Only after closing this dialog, exception is thrown and catched in script and continue to opening new Google Chrome instance.
Please don't execute osascript with undefined openedBrowser or use value from preferredOSXBrowser when openedBrowser is undefined.


Steps to reproduce

vite 3.2.5
be sure there is no running process 'Google Chrome'
execute command:
BROWSER="Google Chrome" vite
MacOS system dialog "Choose Application" - "Where is undefined?" is displayed because vite execute:
osascript openChrome.applescript undefined

System Info

    OS: macOS 12.6
    Shell: 5.8.1 - /bin/zsh
    Node: 16.14.2
    npm: 8.5.0
    Chrome: 107.0.5304.121
    Firefox: 106.0.2
    Safari: 16.0
    vite: ^3.2.5 => 3.2.5

Used Package Manager



No response


@bluwy bluwy added bug and removed pending triage labels Dec 9, 2022
@ArnaudBarre ArnaudBarre self-assigned this Dec 9, 2022
Copy link

I just narrowed down this issue to Vite as well, in my SvelteKit project. Firefox is my browser of choice and is always running when I start my application, so this issue title should remove everything after "application."

Copy link

This has been happening for months btw.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet
None yet

Successfully merging a pull request may close this issue.

4 participants