Storybook does not open in default browser
See original GitHub issueDescribe 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:
- Created 2 years ago
- Reactions:1
- Comments:14 (8 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In that case, may I claim this issue? I’ll get started on a PR with my proposed solution today too!
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.