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

Open
ahmad5149 opened this issue Apr 30, 2024 · 0 comments
Open

[Bug]: Failure in Upgrading Storybook #26989

ahmad5149 opened this issue Apr 30, 2024 · 0 comments

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

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

No branches or pull requests

1 participant