#Cannot choose first story

5 messages · Page 1 of 1 (latest)

empty wren
#

In 6.5, I was able to set the first story that appeared in my Storybook by making it the first in my stories config. That no longer works in 7.0. Here's my config:

export default {
  framework: '@storybook/react-vite',
  stories: [
    './Introduction.mdx',
    '../src/App.stories.tsx',
    {
      directory: '../src/components/atoms',
      titlePrefix: 'Atoms',
    },
    // ...
  ],

But, the mdx file is not shown when storybook launches, instead I see this:

#

@pine aurora could this have something to do with the move from .stories.mdx to .mdx?

pine aurora
#

Should still work in 7.0 — the demo stories that ship with the CLI are organized that way and seem to work?

empty wren
#

Hm ok I'll see if I can make a quick repro

empty wren
#

Ah, ok so this seems to be due to my storySort function.