#Empty Storybook - No stories are defined in your story files

13 messages · Page 1 of 1 (latest)

agile nacelle
#

That glob doesn't look right './**/*.stories.@(js|jsx)'

#

try this: '../src/**/*.stories.@(js|jsx)'

tight hawk
agile nacelle
#

That's probably why

#

wait nvm you have one in the .storybook folder

#

stories should be next to the component code. I would move it to src

tight hawk
#

I did and it still says I have No Stories.

agile nacelle
#

going to pull your code and test it out locally

#

okay, so I spotted several issues:

  1. staticDirs: ['../public'], but there is no public directory in the
  2. docs: { autodocs: true }, but you haven't installed the docs addon or the essentials addon
  3. Not a hard requirement, but your story is using CSF2 syntax. It works but consider switching to CSF3
#

either remove 1 and 2 or add the directory and addon and it should work

tight hawk
#

I'll give that a shot...and thank you.

#

I've added the public directory and added the essentials and docs addon but I'm still not seeing a story.