-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
[v6.0.0-beta.6] Glob not finding stories files #10772
Comments
I see this also. It appears to be a false positive as my stories load. |
Hey @alexcheuk thanks a lot for opening this issue! A fix is being cooked at the moment 👨🍳 |
Unfortunately it's not a false positive.. The value of But we made a mistake, when we wrote the original globs in our docs & CLI generators. It's actually an invalid glob, but it still works, because the glob-to-regex lib makes it work. In the future instead of using a glob-to-regex we'll use glob solely. We'll add instructions to migration.md & make the warning clearer on what's really happening. We'll keep the invalid globs working in storybook for now, but they will break at some point in the future. |
But I get the warning with
|
interesting, I'll investigate! |
I get this issue in 6.0.0-beta.16. It says the glob is invalid, but my stories are found and displayed in the GUI. Is there any way to make the warning go away? Can I format the glob differently? |
Tried generating from scratch with |
Gadzooks!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.0.0-beta.18 containing PR #10926 that references this issue. Upgrade today to try it out! You can find this prerelease on the Closing this issue. Please re-open if you think there's still more to do. |
I confirm the issue is fixed. I was seeing error message for |
I am on 6.0.0-beta.37 and still see it
|
Hey @gastonmorixe could you please share your glob in main.js? Did you see in the migration file in that the glob format is different than previously used in examples? |
@yannbf yeah just saw that, fixed it adding
|
@gastonmorixe - do you have any presets defined. I'm getting a
|
Could you please point out to a complete specification of what's a correct glob? |
Describe the bug
Using the same
main.js
stories
configuration asv5.3
fails to find story files inv6.0.0-beta.6
.main.js
:This warning shows up when running storybook
To Reproduce
Steps to reproduce the behavior:
v6.0.0-beta.6
The text was updated successfully, but these errors were encountered: