storybook: [Bug]: npx sb@next upgrade --prerelease fails
Describe the bug
On an existing SB repo, I tried to upgrade from RC to 7 by running the upgrade action. Here is the result:
*****@ip-***** ***** % npx sb@next upgrade --prerelease
Need to install the following packages:
sb@7.0.0
Ok to proceed? (y) y
• Checking for latest versions of '@storybook/*' packagesinfo ,Upgrading /Users/*****/*****/*****/package.json
info
info All dependencies match the @next package versions :)
info ,npm WARN exec The following package was not found and will be installed: npm-check-updates@16.10.0
info npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
info
info
info ,Upgrading /Users/*****/*****/*****/package.json
info
info No dependencies.
info ,
• Installing upgrades • Preparing to install dependencies. ✓
> *****@0.0.0 postinstall
> ngcc --properties es2015 browser module main
> *****@0.0.0 prepare
> husky install
husky - Git hooks installed
removed 1 package, and audited 3845 packages in 12s
384 packages are looking for funding
run `npm fund` for details
7 vulnerabilities (4 moderate, 1 high, 2 critical)
To address all issues possible (including breaking changes), run:
npm audit fix --force
Some issues need review, and may require choosing
a different dependency.
Run `npm audit` for details.
. ✓
🔎 checking possible migrations..
🔎 found a 'github-flavored-markdown-mdx' migration:
╭ Automigration detected ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ In MDX1 you had the option of using GitHub flavored markdown. │
│ │
│ Storybook 7.0 uses MDX2 for compiling MDX, and thus no longer supports GFM out of the box. │
│ Because of this you need to explicitly add the GFM plugin in the addon-docs options: │
│ https://storybook.js.org/docs/7.0/react/writing-docs/mdx#lack-of-github-flavored-markdown-gfm │
│ │
│ We recommend you follow the guide on the link above, however we can add a temporary storybook addon that helps make this migration easier. │
│ We'll install the addon and add it to your storybook config. │
│ │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
✔ Do you want to run the 'github-flavored-markdown-mdx' migration on your project? … no
ERR! Error
ERR! at NPMProxy.executeCommand (/Users/*****/.npm/_npx/eebb2d3a7d26a7f1/node_modules/@storybook/cli/dist/generate.js:39:1665)
ERR! at NPMProxy.findInstallations (/Users/*****/.npm/_npx/eebb2d3a7d26a7f1/node_modules/@storybook/cli/dist/generate.js:39:2299)
ERR! at automigrate (/Users/*****/.npm/_npx/eebb2d3a7d26a7f1/node_modules/@storybook/cli/dist/generate.js:309:1066)
ERR! at async doUpgrade (/Users/*****/.npm/_npx/eebb2d3a7d26a7f1/node_modules/@storybook/cli/dist/generate.js:382:2893)
ERR! at async withTelemetry (/Users/*****/.npm/_npx/eebb2d3a7d26a7f1/node_modules/@storybook/core-server/dist/index.js:27:3469)
ERR! at async upgrade (/Users/*****/.npm/_npx/eebb2d3a7d26a7f1/node_modules/@storybook/cli/dist/generate.js:382:3336)
ERR! Error
ERR! at NPMProxy.executeCommand (/Users/*****/.npm/_npx/eebb2d3a7d26a7f1/node_modules/@storybook/cli/dist/generate.js:39:1665)
ERR! at NPMProxy.findInstallations (/Users/*****/.npm/_npx/eebb2d3a7d26a7f1/node_modules/@storybook/cli/dist/generate.js:39:2299)
ERR! at automigrate (/Users/*****/.npm/_npx/eebb2d3a7d26a7f1/node_modules/@storybook/cli/dist/generate.js:309:1066)
ERR! at async doUpgrade (/Users/*****/.npm/_npx/eebb2d3a7d26a7f1/node_modules/@storybook/cli/dist/generate.js:382:2893)
ERR! at async withTelemetry (/Users/*****/.npm/_npx/eebb2d3a7d26a7f1/node_modules/@storybook/core-server/dist/index.js:27:3469)
ERR! at async upgrade (/Users/*****/.npm/_npx/eebb2d3a7d26a7f1/node_modules/@storybook/cli/dist/generate.js:382:3336)
To Reproduce
No response
System
No response
Additional context
No response
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 4
- Comments: 21 (7 by maintainers)
This still results in ELSPROBLEMS
+1 Also happening to me
Same for me
Yeah, it worked! 🚀 Thank you!
Same error @carlosrsabreu, try running
npx storybook@future upgrade --tag future
Hello,
I run that command and I got this error: