storybook: Docs only build not working after upgrading to 5.2.1
Describe the bug
Building with --docs no longer just builds the docs tab. It has the canvas tab as well.
To Reproduce Steps to reproduce the behavior:
- Build storybook with
--docs - Load storybook
- See canvas tab is loaded
Expected behavior No tabs, just defaulting to the docs
Screenshots

System:
@storybook/addon-docs: ^5.2.1 => 5.2.1
@storybook/addon-links: ^5.2.1 => 5.2.1
@storybook/addon-options: ^5.2.1 => 5.2.1
@storybook/addon-storysource: ^5.2.1 => 5.2.1
@storybook/addons: ^5.2.1 => 5.2.1
@storybook/cli: ^5.2.1 => 5.2.1
@storybook/react: ^5.2.1 => 5.2.1 ```
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 23 (12 by maintainers)
@shilman I was able to reproduce it with a fresh CRA app and
npx sb initSee the repo: https://github.com/tuncaulubilge/storybook-docs-reproJust run
yarn build-storybook:docsandnpx server storybook-staticto see the results. The UI is quite different than what you’d see withyarn storybook:docsAh, thanks. I searched and searched before opening the issue too. Glad it was an easy fix. Thank you for looking into it and helping out.
@jgodi we had this problem a lot on Chrome. It seems there is a light caching issue related to the LocalStorage. Please clear both LocalStorage and CachedRessources and tell us how it works.
I hope this helps a little.