.storybook/main.mjs globs src/welcome.mdx, which does not exist. Every Storybook
build and dev-server start prints:
▲ No story files found for the specified pattern: src/welcome.mdx
Why it's there
src/welcome.stories.mdx was added in #535 and deleted in #1220 ("Leverage markdown
docs"), but the stories glob that pointed at it was never updated. It has been a
dangling reference ever since:
// We load the welcome story separately so it will be the first sidebar item.stories: ['../src/welcome.mdx','../src/**/*.stories.js','../src/**/*.mdx'],
#2405 did not introduce this — it only renamed the pattern from welcome.stories.mdx to
welcome.mdx along with every other .stories.mdx file. What changed is that Storybook
10 reports unmatched patterns, so a reference that had been silently dead for years is
now visible on every build.
What to decide
The entry matches nothing, so removing it changes no behaviour — including sidebar
order, which is currently decided entirely by the two globs that follow. So this is
either:
- Delete the glob entry and its comment, accepting that there is no welcome page and
the first sidebar item is whatever sorts first; or - Restore an intentional welcome page, if the leading comment still describes
something we want. Note that the sidebar's first item is currently src/docs/intro.mdx,
which may already be serving that purpose — in which case the comment is what's stale,
not the glob.
Small either way, but it wants a decision rather than a silent deletion.
Found while working on the lint & format PR of #2391.
.storybook/main.mjsglobssrc/welcome.mdx, which does not exist. Every Storybookbuild and dev-server start prints:
Why it's there
src/welcome.stories.mdxwas added in #535 and deleted in #1220 ("Leverage markdowndocs"), but the
storiesglob that pointed at it was never updated. It has been adangling reference ever since:
#2405 did not introduce this — it only renamed the pattern from
welcome.stories.mdxtowelcome.mdxalong with every other.stories.mdxfile. What changed is that Storybook10 reports unmatched patterns, so a reference that had been silently dead for years is
now visible on every build.
What to decide
The entry matches nothing, so removing it changes no behaviour — including sidebar
order, which is currently decided entirely by the two globs that follow. So this is
either:
the first sidebar item is whatever sorts first; or
something we want. Note that the sidebar's first item is currently
src/docs/intro.mdx,which may already be serving that purpose — in which case the comment is what's stale,
not the glob.
Small either way, but it wants a decision rather than a silent deletion.
Found while working on the lint & format PR of #2391.