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

[6.5.x] WSL: URL doesn't open in the browser #18086

Closed
Semigradsky opened this issue Apr 28, 2022 · 3 comments
Closed

[6.5.x] WSL: URL doesn't open in the browser #18086

Semigradsky opened this issue Apr 28, 2022 · 3 comments

Comments

@Semigradsky
Copy link

Describe the bug
URL doesn't open in the browser.
There is an error in the console:

ERR! Could not open http://localhost:6005/ inside a browser. If you're running this command inside a
ERR! docker container or on a CI, you need to pass the '--ci' flag to prevent opening a
ERR! browser by default.

To Reproduce
Run start-storybook -p 6005 on WSL. (https://docs.microsoft.com/en-us/windows/wsl/)

System

Environment Info:

  System:
    OS: Linux 5.10 Ubuntu 20.04.3 LTS (Focal Fossa)
    CPU: (8) x64 Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
  Binaries:
    Node: 16.14.0 - ~/.nvm/versions/node/v16.14.0/bin/node
    Yarn: 3.2.0 - /usr/bin/yarn
    npm: 8.3.1 - ~/.nvm/versions/node/v16.14.0/bin/npm

Additional context
Reproduced for v6.5.0-beta-0 and v6.5.0-beta-1. All works fine for v6.4.22

@valentinpalkovic
Copy link
Contributor

valentinpalkovic commented Apr 29, 2022

Which WSL version do you use? WSL 1 or WSL 2? Because I am using WSL 2 and I cannot reproduce this issue locally (WSL 2). The browser is opening without any problems.

@Semigradsky
Copy link
Author

Semigradsky commented May 4, 2022

I have WSL 2. Still reproduced for me on v6.5.0-beta.4 v6.5.4.

I can try to debug if someone can advise what the package here used for opening in the browser.

@Semigradsky Semigradsky changed the title [6.5.0-beta] WSL: URL doesn't open in the browser [6.5.x] WSL: URL doesn't open in the browser May 25, 2022
@Semigradsky
Copy link
Author

Fixed in #18305

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

No branches or pull requests

2 participants