question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Stories globs not matching on fresh install

See original GitHub issue

What 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:closed
  • Created a year ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
viniciusflvcommented, Oct 14, 2022

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.

$ node -v
v16.18.0

$ yarn -v
1.22.19

$ npm -v
8.19.2

Thank you all for the incredible work and for the quick feedback.

1reaction
joshwoodingcommented, Oct 4, 2022

This works for me too

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found