Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Fails in case of using custom folder structure inside /src #226

Open
fedorinoGore opened this issue Jan 20, 2022 · 0 comments
Open
Labels
bug Something isn't working

Comments

@fedorinoGore
Copy link

Describe the bug

In case of custom folder structure the plugin fails to load the stories with error: "version" is a required argument
I have a following folder structure:
./src
|---./storybook
|---./app
|------./components
|---------./buttons
|------------./button.stories.tsx
....

Steps to reproduce the behavior

  1. Storybook 6.1.21, CRA 4.0.3 with craco overriding common folder structure
  2. put all source code under ./app folder
  3. run npm run storybook
  4. See error

Expected behavior

Plugin should deal with more complex folder structure

Environment

  • OS: OS X 12.0.1
  • Node.js version: 16.13.1
  • NPM version: 8.1.2
  • Browser (if applicable): chrome
  • Browser version (if applicable): 97.0
  • Device (if applicable): Macbook

Additional context

Storybook 6.1.21, CRA 4.0.3 with craco
Preset version 3.2.0
Removing '@storybook/preset-create-react-app' from ./storybook/main.js solves the issue

@fedorinoGore fedorinoGore added the bug Something isn't working label Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant