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]: Failure in Upgrading Storybook #26989

Closed
ahmad5149 opened this issue Apr 30, 2024 · 1 comment · Fixed by #27217
Closed

[Bug]: Failure in Upgrading Storybook #26989

ahmad5149 opened this issue Apr 30, 2024 · 1 comment · Fixed by #27217

Comments

@ahmad5149
Copy link

Describe the bug

I am creating a npm package and now I want to upgrade the storybook to the latest version but it's giving an error.
storybook

To Reproduce

Runt the below command to your old project
npx storybook@latest upgrade

System

npx storybook@8.0.9 upgrade
SB_CLI_UPGRADE_0004 (UpgradeStorybookToSameVersionError): You are trying to upgrade Storybook to the same version that is currently installed in the project, version 7.6.18. This is not supported.

This usually happens when running the upgrade command without a version specifier, e.g. "npx storybook upgrade".
This will cause npm to run the globally cached storybook binary, which might be the same version that you already have.
This also happens if you're running the Storybook CLI that is locally installed in your project.
If you intended to upgrade to the latest version, you should always run the Storybook CLI with a version specifier to force npm to download the latest version:
"npx storybook@latest upgrade"
If you intended to re-run automigrations, you should run the "automigrate" command directly instead:
"npx storybook@7.6.18 automigrate"
    at doUpgrade (.\node_modules\@storybook\cli\dist\generate.js:456:5122)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async withTelemetry (.\node_modules\@storybook\core-server\dist\index.js:65:3948)
    at async upgrade (.\node_modules\@storybook\cli\dist\generate.js:463:1752)

Additional context

No response

@shilman
Copy link
Member

shilman commented May 25, 2024

Sorry for this! It should be fixed by #27217 when it's merged/released @kasperpeulen @valentinpalkovic

@shilman shilman moved this to Empathy Backlog in Core Team Projects May 25, 2024
@github-project-automation github-project-automation bot moved this from Empathy Backlog to Done in Core Team Projects Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants