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 does not open in default browser

See original GitHub issue

Describe the bug My default browser is Firefox (if I type open https://storybook.js.org/ in my console then it opens in Firefox. However when I run npm run storybook it opens in another browser I happen to have installed on my computer, called Google Chrome.

To Reproduce Set Firefox as default Browser. In a Story book project, run npm run storybook

System Environment Info:

System: OS: macOS 11.4 CPU: (12) x64 Intel® Core™ i7-9750H CPU @ 2.60GHz Binaries: Node: 12.16.1 - ~/.nvm/versions/node/v12.16.1/bin/node npm: 6.14.11 - ~/.nvm/versions/node/v12.16.1/bin/npm Browsers: Chrome: 91.0.4472.114 Edge: 91.0.864.54 Firefox: 89.0.1 Safari: 14.1.1

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
richorrichardcommented, Nov 22, 2021

In that case, may I claim this issue? I’ll get started on a PR with my proposed solution today too!

2reactions
muster-markcommented, Jun 24, 2021

I think the issue is with better-opn to be honest, it’s hardly “better” if it doesn’t open in the user’s preferred browser. You may wish to use open instead of better-opn, though it may annoy chrome users who enjoyed that functionality. I am satisfied by using the --ci option to prevent opening in a browser at all. I am of the opinion that not opening in a browser would be a better default anyway.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CLI option for start-storybook to not open the browser #6201
I restart start-storybook from time to time for different reasons from changed config to working on other things. Nevertheless, I do not close ......
Read more >
CLI options - Storybook
Storybook is a frontend workshop for building UI components and pages in isolation. ... --no-open, Do not open Storybook automatically in the browser...
Read more >
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 >
HTML Addon: Why copying basic browser features made ...
HTML Addon: Why copying basic browser features made perfect sense. The HTML Addon for Storybook does what modern browsers have been doing for...
Read more >
Blank/Frozen Screen or Book Pages, Audio Not Playing, or ...
Audio may not play back, or buttons that should be clickable may not be. ... content such as available from Houghton Mifflin Harcourt...
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