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

Dev storybook errors on startup with 'mainConfigMatches is not iterable' #5860

Closed
1 of 6 tasks
eatyourgreens opened this issue Jan 18, 2024 · 1 comment · Fixed by #5861
Closed
1 of 6 tasks

Dev storybook errors on startup with 'mainConfigMatches is not iterable' #5860

eatyourgreens opened this issue Jan 18, 2024 · 1 comment · Fixed by #5861
Labels
bug Something isn't working

Comments

@eatyourgreens
Copy link
Contributor

eatyourgreens commented Jan 18, 2024

Package

Choose from the list:

  • app-content-pages
  • app-project
  • lib-classifier
  • lib-panoptes-js
  • lib-react-components
  • unknown

Describe the bug

Discovered while working on #5857.

(base) asosxlap127:lib-classifier odonnell$ yarn storybook
yarn run v1.22.21
$ storybook dev -p 6006
@storybook/cli v7.6.8

TypeError: mainConfigMatches is not iterable
    at validateConfigurationFiles (/Users/odonnell/zooniverse/front-end-monorepo/node_modules/@storybook/core-server/node_modules/@storybook/core-common/dist/index.js:6:1094)
    at async loadMainConfig (/Users/odonnell/zooniverse/front-end-monorepo/node_modules/@storybook/core-server/node_modules/@storybook/core-common/dist/index.js:19:6723)
    at async buildDevStandalone (/Users/odonnell/zooniverse/front-end-monorepo/node_modules/@storybook/core-server/dist/index.js:119:1186)
    at async withTelemetry (/Users/odonnell/zooniverse/front-end-monorepo/node_modules/@storybook/core-server/dist/index.js:65:3948)
    at async dev (/Users/odonnell/zooniverse/front-end-monorepo/node_modules/@storybook/cli/dist/generate.js:478:401)
    at async Command.<anonymous> (/Users/odonnell/zooniverse/front-end-monorepo/node_modules/@storybook/cli/dist/generate.js:493:225)

WARN Broken build, fix the error above.
WARN You may need to refresh the browser.

/Users/odonnell/zooniverse/front-end-monorepo/node_modules/@storybook/cli/bin/index.js:23
  throw error;
  ^

TypeError: mainConfigMatches is not iterable
    at validateConfigurationFiles (/Users/odonnell/zooniverse/front-end-monorepo/node_modules/@storybook/core-server/node_modules/@storybook/core-common/dist/index.js:6:1094)

Node.js v20.9.0
error Command failed with exit code 7.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

To Reproduce

Run yarn storybook from packages/lib-classifier.

Expected behavior

The storybook should run without errors

Additional context

Installed @storybook packages are a mixture of versions from 7.6.6 to 7.6.9. All installed @storybook packages must be on the same version, in order to run the storybook. Upgrading all packages to 7.6.9 should fix this.

@eatyourgreens eatyourgreens added the bug Something isn't working label Jan 18, 2024
@eatyourgreens
Copy link
Contributor Author

#5861 fixed this for me. Cleaning the Yarn cache, and reinstalling, might also fix it (storybookjs/storybook#24520 (comment).)

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

Successfully merging a pull request may close this issue.

1 participant