question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Empty storybook (*.stories.js ignored)

See original GitHub issue

Describe the bug

  1. Create own react boilerplate (without CRA etc.)
  2. Install @storybook/react and @storybook/cli
  3. Run npx -p @storybook/cli sb init
  4. Run yarn storybook
  5. Only mdx file in the list. Stories files was ignored.

To Reproduce Steps to reproduce the behavior:

  1. Clone https://github.com/sshmyg/storybook-test
  2. yarn && yarn storybook

Expected behavior *.stories.js files in the list of the storybook

Screenshots image

System:

Environment Info:

  System:
    OS: macOS 10.15.6
    CPU: (8) x64 Intel(R) Core(TM) i7-3740QM CPU @ 2.70GHz
  Binaries:
    Node: 13.7.0 - ~/.nvm/versions/node/v13.7.0/bin/node
    Yarn: 1.22.5 - /usr/local/bin/yarn
    npm: 6.14.8 - ~/.nvm/versions/node/v13.7.0/bin/npm
  Browsers:
    Chrome: 85.0.4183.83
    Firefox: 80.0.1
    Safari: 13.1.2
  npmPackages:
    @storybook/addon-actions: ^6.0.21 => 6.0.21
    @storybook/addon-essentials: ^6.0.21 => 6.0.21
    @storybook/addon-links: ^6.0.21 => 6.0.21
    @storybook/cli: 6.0.21 => 6.0.21
    @storybook/react: ^6.0.21 => 6.0.21

Additional context Use storybook without CRA, or any others boilerplates.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:3
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
sshmygcommented, Sep 8, 2020

@shilman It’s because of react-refresh/babel. Without it works as expected.

0reactions
Inhye-Cheongcommented, Feb 11, 2022

Is this issue still unresolved? Please check if there is any update.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to troubleshoot storybook not loading stories?
Resave save the story file. It makes the component reappear in side panel, and then you can see the errors ...
Read more >
Configure Storybook
Storybook is a frontend workshop for building UI components and pages in isolation. Thousands of teams use it for UI development, testing, and...
Read more >
Frequently Asked Questions - Storybook - JS.ORG
Storybook is a frontend workshop for building UI components and pages in isolation. Thousands of teams use it for UI development, testing, and...
Read more >
Args - Storybook - JS.ORG
Any other types will be ignored and removed from the URL, but you can still use them with the Controls addon and within...
Read more >
ArgTypes - Storybook - JS.ORG
If you are using the Storybook docs addon (installed by default as part of essentials), then Storybook will infer a set of argTypes...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found