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]: Upgrade from Storybook 6 to Storybook 8 fails if storybook or @storybook/cli isn't installed #25975

Closed
Tracked by #25432
valentinpalkovic opened this issue Feb 9, 2024 · 2 comments · Fixed by #26067
Assignees
Milestone

Comments

@valentinpalkovic
Copy link
Contributor

valentinpalkovic commented Feb 9, 2024

Describe the bug

The upgrade command cannot determine the user's Storybook version if storybook or @storybook/cli aren't listed in the user's package.json. Additionally, the automigrate command isn't doing anything in this case because the actual Storybook version cannot be detected.

To Reproduce

  1. Checkout https://github.com/washingtonpost/wpds-ui-kit
  2. Run npx storybook@next upgrade
  3. The banner shows previous version 0.0.0

Alternatively:

  1. Checkout https://github.com/washingtonpost/wpds-ui-kit
  2. Run npx storybook@next automigrate
  3. The automigration says it is unable to determine the Storybook version so the automigrations will be skipped.

System

No response

Additional context

No response

@llins-wavefin
Copy link

I'm having this issue when trying to upgrade to storybook v7 too

@kyle-mcknight
Copy link

Same for me as well going from 6 to 7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment