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:

  1. Build storybook with --docs
  2. Load storybook
  3. See canvas tab is loaded

Expected behavior No tabs, just defaulting to the docs

Screenshots Screen Shot 2019-09-20 at 11 05 43 AM

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)

Most upvoted comments

@shilman I was able to reproduce it with a fresh CRA app and npx sb init See the repo: https://github.com/tuncaulubilge/storybook-docs-repro

Just run yarn build-storybook:docs and npx server storybook-static to see the results. The UI is quite different than what you’d see with yarn storybook:docs

Ah, 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.