Skip to content

[Bug]: Addons panel is empty when opening component url without a story #31938

Open
@blvdmitry

Description

@blvdmitry

Describe the bug

When opening a url of a component but without a particular story – opens the first story for that component but the addons panel doesn't display any content. If you select the same or any other story and refresh the page, it starts working normal again.

This issue happens only for deployed versions of storybook after its build. I tried reproducing the same issue on Stackblitz but there you could see how if Button component has a first story called variant, navigating to /button redirects you to /button--primary.

Reproduction link

https://reshaped.so/storybook/index.html?path=/story/components-tooltip

Reproduction steps

  1. Go to the above link
  2. Addon panel is empty [bug]
  3. Pick one of the stories and refresh the page
  4. Addon panel is working again

System

Storybook Environment Info:

  System:
    OS: macOS 15.5
    CPU: (12) arm64 Apple M4 Pro
    Shell: 3.2.57 - /bin/sh
  Binaries:
    Node: 22.16.0 - /usr/local/bin/node
    Yarn: 1.22.22 - /usr/local/bin/yarn <----- active
    npm: 10.9.2 - /usr/local/bin/npm
  Browsers:
    Chrome: 137.0.7151.122
    Safari: 18.5
  npmPackages:
    @storybook/addon-a11y: 9.0.13 => 9.0.13 
    @storybook/addon-docs: 9.0.13 => 9.0.13 
    @storybook/addon-vitest: 9.0.13 => 9.0.13 
    @storybook/react-vite: 9.0.13 => 9.0.13 
    chromatic: 13.0.1 => 13.0.1 
    storybook: 9.0.13 => 9.0.13

Additional context

Repository source code is private and I can give someone access if needed.
Related: formaat-design/reshaped#445

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions