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

Can't open browser when using heroku open / webpack-dev-server --open #2413

Closed
wasabigeek opened this issue Aug 12, 2017 · 3 comments
Closed

Comments

@wasabigeek
Copy link

How can I allow external packages to open the browser from within Bash?

For example, with webpack-dev-server --open I get: "Unable to open browser. If you are running in a headless environment, please do not use the open flag."

@wasabigeek wasabigeek changed the title Can't open browser when using heroku open / webpack-dev-server --open Can't open browser when using heroku open / webpack-dev-server --open Aug 12, 2017
@therealkenc
Copy link
Collaborator

Use Firefox under VcXsrv in WSL, or launch a Windows browser with interop like here.

@wasabigeek
Copy link
Author

Thanks @therealkenc!

For anyone else who has the same issue, I added export BROWSER=/mnt/c/Program\ Files\ \(x86\)/Google/Chrome/Application/chrome.exe (your path may vary) to my .bashrc file. This set the default browser to be Chrome, which opens with Interop flawlessly.

Reference: https://askubuntu.com/a/16626

@langarus
Copy link

@wasabigeek Thanks, this solved the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants