You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
stories: [
'../src/docs/Introduction.stories.mdx',
'../src/docs/*.stories.mdx', // This would also match Introduction.stories.mdx
'../src/**/*.stories.@(js|jsx|ts|tsx)',
],
Defining ../src/docs/Introduction.stories.mdx’ first in the list would make sure that the Introduction.stories.mdx (“Getting started”) story was always at the top in the sidebar.
However it seems that, for the same scenario where two globs match the same Introduction file, now there are errors in the CLI:
WARN 🚨 You have two component docs pages with the same name Getting Started/With Mealdrop:Docs. Use <Meta of={} name=“Other Name”> to distinguish them.
Note: The same issue happens with the following format:
Describe the bug
The problem
In Storybook 6, I had a stories field like so:
Defining
../src/docs/Introduction.stories.mdx’
first in the list would make sure that the Introduction.stories.mdx (“Getting started”) story was always at the top in the sidebar.The Storybook 7 automigration changed main.js to:
However it seems that, for the same scenario where two globs match the same Introduction file, now there are errors in the CLI:
Note: The same issue happens with the following format:
Proposed solution
If we see duplicates coming from the same file path, we can just ignore the second one silently
To Reproduce
On a Storybook 7 project, define the following stories glob:
System
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: