Error post RC upgrade
See original GitHub issueDescribe the bug
I was running v6.0-rc23 and decided to upgrade to the latest release candidate by running:
NOTE: I had a fully functional Storybook instance pre-upgrade to rc-26
npx sb@next upgrade --prelease
The process “completes” but then threw the following error:
(node:79621) UnhandledPromiseRejectionWarning: Error: No storybook core packages found!
Full trace:
success Saved lockfile.
✨  Done in 41.61s.
. ✓
(node:79621) UnhandledPromiseRejectionWarning: Error: No storybook core packages found!
    at checkVersionConsistency (/Users/schalkneethling/.npm/_npx/79621/lib/node_modules/sb/node_modules/@storybook/cli/dist/upgrade.js:61:11)
    at upgrade (/Users/schalkneethling/.npm/_npx/79621/lib/node_modules/sb/node_modules/@storybook/cli/dist/upgrade.js:120:19)
    at Command.<anonymous> (/Users/schalkneethling/.npm/_npx/79621/lib/node_modules/sb/node_modules/@storybook/cli/dist/generate.js:38:407)
    at Command.listener [as _actionHandler] (/Users/schalkneethling/.npm/_npx/79621/lib/node_modules/sb/node_modules/commander/index.js:413:31)
    at Command._parseCommand (/Users/schalkneethling/.npm/_npx/79621/lib/node_modules/sb/node_modules/commander/index.js:914:14)
    at Command._dispatchSubcommand (/Users/schalkneethling/.npm/_npx/79621/lib/node_modules/sb/node_modules/commander/index.js:865:18)
    at Command._parseCommand (/Users/schalkneethling/.npm/_npx/79621/lib/node_modules/sb/node_modules/commander/index.js:882:12)
    at Command.parse (/Users/schalkneethling/.npm/_npx/79621/lib/node_modules/sb/node_modules/commander/index.js:717:10)
    at Object.<anonymous> (/Users/schalkneethling/.npm/_npx/79621/lib/node_modules/sb/node_modules/@storybook/cli/dist/generate.js:96:70)
    at Module._compile (internal/modules/cjs/loader.js:1201:30)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:79621) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:79621) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Attempting to run Storybook now results in the following error:
yarn run v1.22.4
$ yarn workspace client storybook
$ start-storybook -p 9009 -s public
info @storybook/react v6.0.0-rc.26
info 
info => Loading static files from: /Users/schalkneethling/repos/yari/client/public .
info => Loading presets
info => Loading presets
info => Loading config/preview file in "./.storybook".
info => Loading config/preview file in "./.storybook".
info => Loading Webpack configuration from `../node_modules/react-scripts`
info => Removing existing JavaScript and TypeScript rules.
info => Modifying Create React App rules.
ERR! Error: Cannot find module 'babel-loader'
ERR! Require stack:
ERR! - /Users/schalkneethling/repos/yari/node_modules/@storybook/addon-docs/dist/frameworks/common/preset.js
ERR! - /Users/schalkneethling/repos/yari/node_modules/@storybook/core/dist/server/presets.js
ERR! - /Users/schalkneethling/repos/yari/node_modules/@storybook/core/dist/server/config.js
ERR! - /Users/schalkneethling/repos/yari/node_modules/@storybook/core/dist/server/build-static.js
ERR! - /Users/schalkneethling/repos/yari/node_modules/@storybook/core/server.js
ERR! - /Users/schalkneethling/repos/yari/node_modules/@storybook/react/dist/server/index.js
ERR! - /Users/schalkneethling/repos/yari/node_modules/@storybook/react/bin/index.js
ERR!     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1030:15)
ERR!     at Function.resolve (internal/modules/cjs/helpers.js:81:19)
ERR!     at Object.webpack (/Users/schalkneethling/repos/yari/node_modules/@storybook/addon-docs/dist/frameworks/common/preset.js:167:27)
ERR!     at /Users/schalkneethling/repos/yari/node_modules/@storybook/core/dist/server/presets.js:258:36
ERR!     at async Promise.all (index 1)
ERR!     at async buildDevStandalone (/Users/schalkneethling/repos/yari/node_modules/@storybook/core/dist/server/build-dev.js:438:28)
ERR!     at async buildDev (/Users/schalkneethling/repos/yari/node_modules/@storybook/core/dist/server/build-dev.js:520:3)
ERR!  Error: Cannot find module 'babel-loader'
To Reproduce Steps to reproduce the behavior:
- Have RC candidate release 23 installed
 - Run 
npx sb@next upgrade --prelease 
Expected behavior
Upgrade completes without error.
System:
Please paste the results of npx -p @storybook/cli@next sb info here.
Additional context
Environment Info:
System: OS: macOS 10.15.5 CPU: (8) x64 Intel® Core™ i7-7920HQ CPU @ 3.10GHz Binaries: Node: 14.5.0 - /usr/local/bin/node Yarn: 1.22.4 - /usr/local/bin/yarn npm: 6.14.5 - /usr/local/bin/npm Browsers: Firefox: 78.0.2 Safari: 13.1.1
Issue Analytics
- State:
 - Created 3 years ago
 - Comments:13 (4 by maintainers)
 
Top Results From Across the Web
Error after upgrade to rc - Prime Community Forum
I am getting error after upgrade from beta.20 to rc.1. The application is working fine up to beta.20. I am getting zone.js error...
Read more >DB2 API backup fail with RC 927 after Client upgrade to 7.1.8 ...
Problem. DB2 backup or db2adutl commands fail with Reason Code 927 after upgrading the IBM Spectrum Protect Client to 7.1.8 or 8.1.2.
Read more >vCenter Server upgrade from 7.0 U2 to 7.0 U3c fails with error ...
The imagebuilder, updatemgr, vsan-health services failed to start due to timeout post vCenter server patching activity and hence the upgrade is ...
Read more >Android Studio 4.1 RC, facing start failed error after upgrade
please remove the file .local/share/google and Open android studio it will work.
Read more >etc/rc: Error Usage load load_rc_config name. Can't boot after ...
There's either a mistake in rc.conf or a botched mergemaster(8). ... And working fine because before second upgrade stage from 10.3-RELEASE, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hurrah!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.0.6 containing PR #11993 that references this issue. Upgrade today to try it out!
Closing this issue. Please re-open if you think there’s still more to do.
Dang, I am unfortunately(fortunately? :slight_smile: ) not in that broken state anymore. I am going to bump the version of the RC today. Should this happen again, I will be sure to run the command and let you know the output.