New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stories not available when file name starts with 'config'. #13445
Comments
Do you have a repro repo you can share? |
I can't share the one I have, but I'll try to create a small repro repo later. Digging deeper into that I realized that for some names it works, for other it doesn't, with strong no-working correlation for names starting with a letter 'c' (except for 'checkbox.tsx') As soon as I change the first letter to some other it works. Is there any naming convention or something which I'm not aware of? |
@MBelniak nothing that i know of, and this is the first i'm hearing of it. i suspect it's a configuration issue, but won't know until i see the repro. |
I find it too ridiculous to be a storybook issue too, so let me make a repro repo. |
It turned out to be a problem with style-loader configuration. I had an option |
I think it's a bug. I have a component called 'ConfigSelector' and few stories in 'config-selector.tsx'. Stories from this file are not visible in storybook. Stories from other files I have work OK. If I change the name of file to sth not starting with 'config', stories are visible. FYI my storybook configuration files are in separate directory.
Steps to reproduce the behavior:
Result:
No stories from "config-whatever.tsx" available.
Expected behavior
Stories from "config-whatever.tsx" are visible.
This happens with @storybook/react 6.1.10
The text was updated successfully, but these errors were encountered: