You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that index.stories.svelte is never picked up by Storybook. However, if I rename this file to, e.g., Navbar.stories.svelte then everything works fine.
This is not a problem per se - I can rename things - but it was rather annoying to try to figure out.
Additional steps outside of the reproduction: In addition to the usual setup, I followed the guide described in #14929.
To Reproduce
I don't see too much in to reproduction repo that might help to describe this issue but here it is anyway:
This is related to the generation of the component name. there is two "index" in the folder "Navbar", and the two components are assumed to have the same name "Navbar" (the real component and the stories component).
I'll check how to fix that.
A little workaround : in 'index.stories.svelte', don't do import Navbar from "./index.svelte" but use another name : import NavbarCpn from "./index.svelte"
Describe the bug
I have historically set up my stories so that each component has a directory containing the component with the story right beside it. For example:
I found that
index.stories.svelte
is never picked up by Storybook. However, if I rename this file to, e.g.,Navbar.stories.svelte
then everything works fine.This is not a problem per se - I can rename things - but it was rather annoying to try to figure out.
Additional steps outside of the reproduction: In addition to the usual setup, I followed the guide described in #14929.
To Reproduce
I don't see too much in to reproduction repo that might help to describe this issue but here it is anyway:
https://github.com/michaelwooley/storybook-svelte-index-issue-repro
System
Please paste the results of
npx sb@next info
here.Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: