The CFS Stories with MDX Docs example documents how to have adjacent .stories.js
. and .stories.mdx
files for the same component, but the example actually causes an error: Duplicate title 'Demo/Button' used in multiple files; use unique titles or combine 'Demo/Button' stories into a single file.
.
git clone https://github.com/schneidmaster/storybook/error/demo
yarn install
yarn storybook
- Wait for storybook to start up, see error