The story-exports rule now detects whether you are using includeStories/excludeStories and provides a more helpful message in case there are not exported stories. A possible scenario is you have a typo in your includeStories which will result in Storybook not including it:
export default {
title: 'Button',
includeStories: ['myStory'], // <-- notice the lowercase m, which won't match with the story name
};
export const MyStory = {};
The file should have at least one story export. Make sure the includeStories/excludeStories you defined are correct, otherwise Storybook will not use any stories for this file.'
Checklist
Check the ones applicable to your change:
[ ] Ran yarn update-all
[x] Tests are updated
[ ] Documentation is updated
Change Type
Indicate the type of change your pull request is:
[ ] maintenance
[ ] documentation
[x] patch
[ ] minor
[ ] major
Release notes
The story-exports rule now detects whether you are using includeStories/excludeStories and provides a more helpful message in case there are not exported stories. A possible scenario is you have a typo in your includeStories which will result in Storybook not including it:
export default {
title: 'Button',
includeStories: ['myStory'], // <-- notice the lowercase m, which won't match with the story name
};
export const MyStory = {};
Issue: N/A
What Changed
The
story-exports
rule now detects whether you are usingincludeStories/excludeStories
and provides a more helpful message in case there are not exported stories. A possible scenario is you have a typo in yourincludeStories
which will result in Storybook not including it:Checklist
Check the ones applicable to your change:
yarn update-all
Change Type
Indicate the type of change your pull request is:
maintenance
documentation
patch
minor
major
Release notes
The
story-exports
rule now detects whether you are usingincludeStories/excludeStories
and provides a more helpful message in case there are not exported stories. A possible scenario is you have a typo in yourincludeStories
which will result in Storybook not including it: