[Bug] Stories globs not matching on fresh install
See original GitHub issueWhat version of vite
are you using?
3.1.4
System info and storybook versions
System: OS: windows 10 CPU: 11th Gen Intel® Core™ i7-1165G7 @ 2.80GHz @ 2.80 GHz Binaries: Node: 16.14.2 Yarn: 1.22.18 npm: 8.5.5 Browsers: chrome: 105.0.5195.128 npmPackages: “@storybook/addon-actions”: “^6.5.12”, “@storybook/addon-essentials”: “^6.5.12”, “@storybook/addon-interactions”: “^6.5.12”, “@storybook/addon-links”: “^6.5.12”, “@storybook/builder-vite”: “^0.2.3”, “@storybook/react”: “^6.5.12”, “@storybook/testing-library”: “^0.0.13”,
Describe the Bug
Fresh install using npm create vite@latest
and npx sb@latest init
it’s not finding stories.
Couldn't find any stories in your Storybook.
- Please check your stories field of your main.js config.
- Also check the browser console and terminal for error messages.
Link to Minimal Reproducible Example
https://github.com/viniciusflv/storybook-glob-bug
Participation
- I am willing to submit a pull request for this issue.
Issue Analytics
- State:
- Created a year ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
glob matching doesn't seem to work consistenly for plain ...
Describe your question, feature request, or bug. I think that passing a plain directory as argument to -g should match files in that...
Read more >Glob matching not working in Storybook config? - Stack Overflow
I have this in my main.js: stories: ['../src/components/**/*'],. But it simply won't load. The UI says "no stories found" in so many words....
Read more >Bug listing with status RESOLVED with resolution OBSOLETE ...
Bug :1523 - "[IDEA] Offload work by distributing trivial ebuild maintenance to ... classes do no match" status:RESOLVED resolution:OBSOLETE severity:normal ...
Read more >About iOS 15 Updates - Apple Support (IN)
iOS 15.2.1 contains bug fixes for your iPhone including: Messages may not load photos sent using an iCloud Link; Third-party CarPlay apps may ......
Read more >Halo Infinite known bugs, launch issues, and how to fix them
There is no known fix for this issue right now, so make sure you equip the customizations you want before and after each...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It is working now. As suspected it’s probably something with my machine config.
Yesterday I had to reinstall everything from scratch, for a unrelated issue, so I think maybe it was some sort of global cache that
npm cache clean -f
wasn’t able to clear.Thank you all for the incredible work and for the quick feedback.
This works for me too