Open
Description
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
- Go to the above link
- Addon panel is empty [bug]
- Pick one of the stories and refresh the page
- 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