question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Storybook is not opening the browser tab by default

See original GitHub issue

Describe the bug When running start-storybook it does not automatically open the browser tab anymore.

To Reproduce yarn start-storybook -p 6006

Expected behavior When compilation is complete, a browser tab would open to http://localhost:6006/

System

Environment Info:

  System:
    OS: Linux 4.19 Ubuntu 18.04.5 LTS (Bionic Beaver)
    CPU: (6) x64 Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz
  Binaries:
    Node: 14.15.4 - ~/.nvm/versions/node/v14.15.4/bin/node
    Yarn: 1.22.4 - ~/.nvm/versions/node/v14.15.4/bin/yarn
    npm: 6.14.10 - ~/.nvm/versions/node/v14.15.4/bin/npm
  npmPackages:
    @storybook/addon-actions: 6.1.17 => 6.1.17 
    @storybook/addon-essentials: 6.1.17 => 6.1.17 
    @storybook/addon-graphql: 6.1.17 => 6.1.17 
    @storybook/addon-knobs: 6.1.17 => 6.1.17 
    @storybook/addon-links: 6.1.17 => 6.1.17 
    @storybook/addon-storysource: 6.1.17 => 6.1.17 
    @storybook/addons: 6.1.17 => 6.1.17 
    @storybook/react: 6.1.17 => 6.1.17 

Additional context This issue happened after migrating from 5.3.x to 6.1.17

I don’t know if this is related to #13812

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
shilmancommented, Feb 24, 2021

Yo-ho-ho!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.2.0-beta.2 containing PR #14032 that references this issue. Upgrade today to the @next NPM tag to try it out!

npx sb upgrade --prerelease

Closing this issue. Please re-open if you think there’s still more to do.

0reactions
dons20commented, Feb 24, 2021

I managed to upgrade, but it didn’t resolve the issue. I’m wondering if it’s because I’m running it in WSL? Perhaps that interferes with the process used to automatically launch the browser. I’ve seen a similar issue where using a linux command to copy to clipboard fails unless I pipe it to clip.exe. Will do some more experimentation, but I think my issue could be my local dev environment.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CLI option for start-storybook to not open the browser #6201
Opening the browser with start-storybook should be disabled by default and can be enabled by using --open . Webpack supports the --open /...
Read more >
How to troubleshoot storybook not loading stories?
Check the console of the chrome window running localhost. You should see errors there. I had a component not showing ...
Read more >
Links Addon | Storybook: Frontend workshop for UI development
... use default browser methods to open link in new tab. A React implementation of such a component can be imported from @storybook/addon-links...
Read more >
Zeplin Addon | Storybook: Frontend workshop for UI ...
If you find a case that the addon does not work, please open an issue. ... Run following commands in separate tabs to...
Read more >
Storybook: Frontend workshop for UI development
Storybook is a frontend workshop for building UI components and pages in isolation. Thousands of teams use it for UI development, testing, and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found