Uh oh!
There was an error while loading. Please reload this page.
Remove the dead welcome.mdx entry from Storybook's stories globs - #2441
Merged
Conversation
src/welcome.mdx no longer exists, so Storybook printed 'No story files found for the specified pattern' on every build. src/docs/intro.mdx already sorts first and serves the purpose the entry's comment described, so the sidebar order is unaffected.
|
✅ Deploy Preview for cloudfour-patterns ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Storybook has been printing
No story files found for the specified pattern: ./src/welcome.mdxon every build. That file was removed a while ago, but the glob loading it stayed, along with a comment explaining that it was listed separately so it would sort to the top of the sidebar.src/docs/intro.mdxhas been doing that job ever since, so the comment was the stale half rather than the glob — there is no welcome page to bring back.Storybook does not fail on an unmatched glob, it just warns and moves on, which is why this survived as long as it did.
Screenshots
Testing
npm run build-storybooklocally. The output should no longer contain a "No story files found for the specified pattern" line.src/welcome.mdx#2415