Storybook: Error post RC upgrade

Created on 5 Aug 2020  Â·  12Comments  Â·  Source: storybookjs/storybook

Describe 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:

  1. Have RC candidate release 23 installed
  2. 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(R) Core(TM) 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

bug cli dependencies tracked

All 12 comments

In a move of desperation :) I did the following:

npx sb@next init -f

Storybook works again post the above command.

Here is what can infer from looking at the contents of package.json over commits:

Interestingly the working version of RC23 had the following entries in package.json

"@storybook/addon-actions": "^6.0.0-rc.23",
"@storybook/addon-controls": "^6.0.0-rc.23",
"@storybook/addon-docs": "^6.0.0-rc.23",
"@storybook/addon-links": "^6.0.0-rc.23",
"@storybook/addons": "^6.0.0-rc.23",
"@storybook/preset-create-react-app": "^3.1.4",
"@storybook/react": "^6.0.0-rc.23",

After rerunning init the devDependencies now look something like:

"@babel/core": "^7.11.1",
"@storybook/addon-actions": "^6.0.0-rc.26",
"@storybook/addon-essentials": "^6.0.0-rc.26",
"@storybook/addon-links": "^6.0.0-rc.26",
"@storybook/addons": "^6.0.0-rc.26",
"@storybook/node-logger": "^6.0.0-rc.26",
"@storybook/preset-create-react-app": "^3.1.4",
"@storybook/react": "^6.0.0-rc.26",
"@testing-library/react": "^10.4.7",
"babel-loader": "^8.1.0",

Notice @babel/core and babel-loader. I guess these must still have been inside node_modules from earlier but once I purged node_modules it was not installed again.

I also noticed this new entry inside preview.js

export const parameters = {
  actions: { argTypesRegex: "^on[A-Z].*" },
}

Another change I notice is that I used to have the following in preview.js

import { addParameters, configure } from "@storybook/react";
import { DocsPage, DocsContainer } from "@storybook/addon-docs/blocks";

import "./preview.scss";

addParameters({
  docs: {
    container: DocsContainer,
    page: DocsPage
  }
});

const loadStories = () => {
  return [
    // load Docs first
    require.context("../docs", true, /intro.stories.mdx/),
    require.context("../docs", true, /\.stories\.(js|jsx|ts|tsx|mdx)$/),
    require.context("../src", true, /\.stories\.(js|jsx|ts|tsx|mdx)$/)
  ];
};

configure(loadStories(), module);

This is no longer in preview.js but is now defined in main.js as follows:

module.exports = {
  stories: [
    "../src/**/*.stories.mdx",
    "../docs/**/*.stories.mdx",
    "../src/**/*.stories.@(js|jsx|ts|tsx)",
  ],
  addons: [
    "@storybook/addon-links",
    "@storybook/addon-actions",
    "@storybook/addon-essentials",
    "@storybook/preset-create-react-app",
  ],
};

Just tried to upgrade and can confirm that I get them same error:

Done in 83.64s.
. ✓
(node:149386) UnhandledPromiseRejectionWarning: Error: No storybook core packages found!
    at checkVersionConsistency (/home/lukass/.npm/_npx/149386/lib/node_modules/sb/node_modules/@storybook/cli/dist/upgrade.js:61:11)
    at upgrade (/home/lukass/.npm/_npx/149386/lib/node_modules/sb/node_modules/@storybook/cli/dist/upgrade.js:120:19)
    at Command.<anonymous> (/home/lukass/.npm/_npx/149386/lib/node_modules/sb/node_modules/@storybook/cli/dist/generate.js:38:407)
    at Command.listener [as _actionHandler] (/home/lukass/.npm/_npx/149386/lib/node_modules/sb/node_modules/commander/index.js:413:31)
    at Command._parseCommand (/home/lukass/.npm/_npx/149386/lib/node_modules/sb/node_modules/commander/index.js:914:14)
    at Command._dispatchSubcommand (/home/lukass/.npm/_npx/149386/lib/node_modules/sb/node_modules/commander/index.js:865:18)
    at Command._parseCommand (/home/lukass/.npm/_npx/149386/lib/node_modules/sb/node_modules/commander/index.js:882:12)
    at Command.parse (/home/lukass/.npm/_npx/149386/lib/node_modules/sb/node_modules/commander/index.js:717:10)
    at Object.<anonymous> (/home/lukass/.npm/_npx/149386/lib/node_modules/sb/node_modules/@storybook/cli/dist/generate.js:96:70)
    at Module._compile (internal/modules/cjs/loader.js:956:30)
(node:149386) 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(). (rejection id: 1)
(node:149386) [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.

everything works though :shrug:

In addition to that I have some typescript issues:

export {default as SomeComponent, SomeType} from './SomeComponent';

now spams some warnings a la:

WARNING in ./src/components/ActivityLogSidecard/index.ts 1:0-86
"export 'SomeType' was not found in './SomeComponent'
 @ ./src/index.tsx
 @ ./stories/bullet-status.stories.tsx
 @ . sync ^\.(?:(?:^|\/|(?:(?:(?!(?:^|\/)\.).)*?)\/)(?!\.)(?=.)[^/]*?\.stories\.(ts|tsx))$
 @ ./.storybook/generated-stories-entry.js

@schalkneethling @sakulstra the upgrade script uses npm ls and looks for the package version for @storybook/*. when it throws that No storybook core packages found! it means that it couldn't find any of those packages installed. what happens when you run npm ls by hand on the command line?

@sakulstra is SomeType defined in ./SomeComponent? did it not raise that warning before you upgraded?

@sakulstra is SomeType defined in ./SomeComponent? did it not raise that warning before you upgraded?

yes and yes - we're building the project as a package and the output contains the types and doesn't complain about any missing things. I was able to workaround that issue by using instead :shrug: :

- export {default as SomeComponent, SomeType} from './SomeComponent';
+ export {default as SomeComponent} from './SomeComponent';
+ export * from './SomeComponent';

when it throws that No storybook core packages found! it means that it couldn't find any of those packages installed. what happens when you run npm ls by hand on the command line?

can't check atm., but i could imagine there's sth wrong because I was running this in a yarn monorepo/workspaces subpackage :thinking:. Will check when I get the chance and report back.

@schalkneethling @sakulstra the upgrade script uses npm ls and looks for the package version for @storybook/*. when it throws that No storybook core packages found! it means that it couldn't find any of those packages installed. what happens when you run npm ls by hand on the command line?

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.

I've also just faced the same issue after running npx sb upgrade to upgrade to 6.0.5. Storybook still works though.

Same error.

I was updating from SB 5.

I ran npx sb upgrade.


 • Checking for latest versions of '@storybook/*' packagesinfo ,Upgrading C:\Users\sebas\Documents\heob\package.json
info
info  @storybook/addon-actions             ^5.1.9  →  ^6.0.5
info  @storybook/addon-links               ^5.1.9  →  ^6.0.5
info  @storybook/addons                    ^5.1.9  →  ^6.0.5
info  @storybook/preset-create-react-app   ^1.5.2  →  ^3.1.4
info  @storybook/react                    ^5.3.14  →  ^6.0.5
info
info Run npm install to install new versions.
info
info ,npx: installed 300 in 15.105s
info
info
 • Installing upgrades • Preparing to install dependencies. ✓


yarn install v1.22.4
info No lockfile found.
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-loc
k.json.
[1/4] Resolving packages...
warning fabric > jsdom > [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
warning fabric > jsdom > [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
warning fabric > jsdom > request > [email protected]: this library is no longer supported
warning [email protected]: This fork is now obsolete. Use the regular jspdf (>=2.0.0) instead.
warning jspdf-yworks > canvg > jsdom > [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
warning react-scripts > jest-environment-jsdom-fourteen > jsdom > [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
warning react-scripts > jest-environment-jsdom-fourteen > jsdom > [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
warning react-scripts > webpack-dev-server > [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
warning react-scripts > webpack-dev-server > chokidar > [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
warning react-scripts > babel-jest > @jest/transform > jest-haste-map > [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
warning react-scripts > workbox-webpack-plugin > workbox-build > @hapi/[email protected]: joi is leaving the @hapi organization and moving back to 'joi' (https://github.com/sideway/joi/issues/2411)
warning react-scripts > webpack > watchpack > watchpack-chokidar2 > [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
warning react-scripts > jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
warning react-scripts > jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142

warning react-scripts > resolve-url-loader > rework > css > [email protected]: Please see https://github.com/lydell/urix#deprecated
warning react-scripts > resolve-url-loader > rework > css > source-map-resolve > [email protected]: Please see https://github.com/lydell/urix#deprecated
warning react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi > @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
warning react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi > @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
warning react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi > @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
warning react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi > @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
warning react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi > @hapi/topo > @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
warning react-scripts > jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > [email protected]: use String.prototype.padStart()
warning react-scripts > resolve-url-loader > rework > css > source-map-resolve > [email protected]: https://github.com/lydell/resolve-url#deprecated
warning react-scripts > workbox-webpack-plugin > workbox-build > strip-comments > babel-plugin-transform-object-rest-spread > babel-runtime > [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade
 your dependencies to the actual version of core-js@3.
warning semantic-ui-react > react-popper > [email protected]: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
warning svg2pdf.js > [email protected]: This fork is now obsolete. Use the regular jspdf (>=2.0.0) instead.
warning @storybook/addon-actions > @storybook/components > [email protected]: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
warning @types/[email protected]: This is a stub types definition for Firebase API (https://www.firebase.com/docs/javascript/firebase). Firebase API provides its own type definitions, so you don't need @types/firebase installed!
warning @types/[email protected]: This is a stub types definition for Moment (https://github.com/moment/moment). Moment provides its own type definitions, so you don't need @types/moment installed!
warning @types/[email protected]: This is a stub types definition for react-day-picker (https://github.com/gpbl/react-day-picker). react-day-picker provides its own type definitions, so you don't need @types/react-day-picker installed!
[2/4] Fetching packages...
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "@storybook/react > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning " > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @storybook/core > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @storybook/core > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @storybook/core > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @storybook/core > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @storybook/core > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @storybook/core > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @storybook/core > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @storybook/core > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @storybook/core > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @storybook/core > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @storybook/core > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @storybook/core > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @storybook/core > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @storybook/core > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning " > @storybook/[email protected]" has unmet peer dependency "@babel/core@*".
warning " > @storybook/[email protected]" has unmet peer dependency "@storybook/node-logger@*".
warning "@storybook/preset-create-react-app > react-docgen-typescript-plugin > react-docgen-typescript-loader > @webpack-contrib/[email protected]" has unmet peer dependency "webpack@^3.0.0 || ^4.0.0".
warning " > @storybook/[email protected]" has unmet peer dependency "@babel/core@^7.0.1".
warning "@storybook/react > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @babel/preset-flow > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @storybook/[email protected]" has unmet peer dependency "@babel/core@*".
warning "@storybook/react > @storybook/core > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @storybook/core > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @storybook/core > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @storybook/core > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @storybook/core > @babel/plugin-proposal-export-default-from > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
[4/4] Building fresh packages...
success Saved lockfile.
Done in 190.39s.
. ✓
(node:23132) UnhandledPromiseRejectionWarning: Error: No storybook core packages found!
    at checkVersionConsistency (C:\Users\sebas\AppData\Roaming\npm-cache\_npx\23132\node_modules\sb\node_modules\@storybook\cli\dist\upgrade.js:61:11)
    at upgrade (C:\Users\sebas\AppData\Roaming\npm-cache\_npx\23132\node_modules\sb\node_modules\@storybook\cli\dist\upgrade.js:120:19)
    at Command.<anonymous> (C:\Users\sebas\AppData\Roaming\npm-cache\_npx\23132\node_modules\sb\node_modules\@storybook\cli\dist\generate.js:38:407)
    at Command.listener [as _actionHandler] (C:\Users\sebas\AppData\Roaming\npm-cache\_npx\23132\node_modules\sb\node_modules\commander\index.js:413:31)
    at Command._parseCommand (C:\Users\sebas\AppData\Roaming\npm-cache\_npx\23132\node_modules\sb\node_modules\commander\index.js:914:14)
    at Command._dispatchSubcommand (C:\Users\sebas\AppData\Roaming\npm-cache\_npx\23132\node_modules\sb\node_modules\commander\index.js:865:18)
    at Command._parseCommand (C:\Users\sebas\AppData\Roaming\npm-cache\_npx\23132\node_modules\sb\node_modules\commander\index.js:882:12)
    at Command.parse (C:\Users\sebas\AppData\Roaming\npm-cache\_npx\23132\node_modules\sb\node_modules\commander\index.js:717:10)
    at Object.<anonymous> (C:\Users\sebas\AppData\Roaming\npm-cache\_npx\23132\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:23132) 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 unh
andled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:23132) [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.



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.

Um. I am on Windows. I still get errors:

npx sb upgrade
 • Checking for latest versions of '@storybook/*' packagesinfo ,Upgrading C:\Users\sebas\Documents\heob\package.json
info
info All dependencies match the latest package versions :)
info ,npx: installed 300 in 12.731s
info
info
 • Installing upgrades • Preparing to install dependencies. ✓


yarn install v1.22.4
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-loc
k.json.
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.77s.
. ✓
WARN No storybook core packages found.
WARN 'npm ls | grep storybook' can show if multiple versions are installed.
(node:14212) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'version' of undefined
    at checkVersionConsistency (C:\Users\sebas\AppData\Roaming\npm-cache\_npx\14212\node_modules\sb\node_modules\@storybook\cli\dist\upgrade.js:67:46)
    at upgrade (C:\Users\sebas\AppData\Roaming\npm-cache\_npx\14212\node_modules\sb\node_modules\@storybook\cli\dist\upgrade.js:122:19)
    at Command.<anonymous> (C:\Users\sebas\AppData\Roaming\npm-cache\_npx\14212\node_modules\sb\node_modules\@storybook\cli\dist\generate.js:38:407)
    at Command.listener [as _actionHandler] (C:\Users\sebas\AppData\Roaming\npm-cache\_npx\14212\node_modules\sb\node_modules\commander\index.js:413:31)
    at Command._parseCommand (C:\Users\sebas\AppData\Roaming\npm-cache\_npx\14212\node_modules\sb\node_modules\commander\index.js:914:14)
    at Command._dispatchSubcommand (C:\Users\sebas\AppData\Roaming\npm-cache\_npx\14212\node_modules\sb\node_modules\commander\index.js:865:18)
    at Command._parseCommand (C:\Users\sebas\AppData\Roaming\npm-cache\_npx\14212\node_modules\sb\node_modules\commander\index.js:882:12)
    at Command.parse (C:\Users\sebas\AppData\Roaming\npm-cache\_npx\14212\node_modules\sb\node_modules\commander\index.js:717:10)
    at Object.<anonymous> (C:\Users\sebas\AppData\Roaming\npm-cache\_npx\14212\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:14212) 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 unh
andled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:14212) [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.


This was the update from 6.0.5 to 6.0.6:

```npx sb upgrade
• Checking for latest versions of '@storybook/*' packagesinfo ,Upgrading C:\Users\sebas\Documents\heobpackage.json
info
info @storybook/addon-actions ^6.0.5 → ^6.0.6
info @storybook/addon-links ^6.0.5 → ^6.0.6
info @storybook/addons ^6.0.5 → ^6.0.6
info @storybook/react ^6.0.5 → ^6.0.6
info
info Run npm install to install new versions.
info
info ,npx: installed 300 in 14.943s
info
info
• Installing upgrades • Preparing to install dependencies. ✓

yarn install v1.22.4
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-loc
k.json.
[1/4] Resolving packages...
[2/4] Fetching packages...
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "@storybook/react > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning " > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @storybook/core > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @storybook/core > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @storybook/core > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @storybook/core > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @storybook/core > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @storybook/core > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @storybook/core > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @storybook/core > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @storybook/core > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @storybook/core > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @storybook/core > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @storybook/core > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @storybook/core > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @storybook/core > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning " > @storybook/[email protected]" has unmet peer dependency "@babel/core@".
warning " > @storybook/[email protected]" has unmet peer dependency "@storybook/node-logger@
".
warning "@storybook/preset-create-react-app > react-docgen-typescript-plugin > react-docgen-typescript-loader > @webpack-contrib/[email protected]" has unmet peer dependency "webpack@^3.0.0 || ^4.0.0".
warning " > @storybook/[email protected]" has unmet peer dependency "@babel/core@^7.0.1".
warning "@storybook/react > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @babel/preset-flow > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @storybook/[email protected]" has unmet peer dependency "@babel/core@*".
warning "@storybook/react > @storybook/core > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @storybook/core > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @storybook/core > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @storybook/core > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @storybook/core > @babel/plugin-proposal-export-default-from > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
[4/4] Building fresh packages...
success Saved lockfile.
Done in 112.42s.
. ✓
WARN No storybook core packages found.
WARN 'npm ls | grep storybook' can show if multiple versions are installed.
(node:16608) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'version' of undefined
at checkVersionConsistency (C:\Users\sebas\AppData\Roaming\npm-cache_npx\16608node_modules\sbnode_modules\@storybook\cli\dist\upgrade.js:67:46)
at upgrade (C:\Users\sebas\AppData\Roaming\npm-cache_npx\16608node_modules\sbnode_modules\@storybook\cli\dist\upgrade.js:122:19)
at Command. (C:\Users\sebas\AppData\Roaming\npm-cache_npx\16608node_modules\sbnode_modules\@storybook\cli\dist\generate.js:38:407)
at Command.listener [as _actionHandler] (C:\Users\sebas\AppData\Roaming\npm-cache_npx\16608node_modules\sbnode_modules\commander\index.js:413:31)
at Command._parseCommand (C:\Users\sebas\AppData\Roaming\npm-cache_npx\16608node_modules\sbnode_modules\commander\index.js:914:14)
at Command._dispatchSubcommand (C:\Users\sebas\AppData\Roaming\npm-cache_npx\16608node_modules\sbnode_modules\commander\index.js:865:18)
at Command._parseCommand (C:\Users\sebas\AppData\Roaming\npm-cache_npx\16608node_modules\sbnode_modules\commander\index.js:882:12)
at Command.parse (C:\Users\sebas\AppData\Roaming\npm-cache_npx\16608node_modules\sbnode_modules\commander\index.js:717:10)
at Object. (C:\Users\sebas\AppData\Roaming\npm-cache_npx\16608node_modules\sbnode_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:16608) 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 unh
andled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:16608) [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.
```

Was this page helpful?
0 / 5 - 0 ratings

Related issues

purplecones picture purplecones  Â·  3Comments

alexanbj picture alexanbj  Â·  3Comments

shilman picture shilman  Â·  3Comments

tlrobinson picture tlrobinson  Â·  3Comments

sakulstra picture sakulstra  Â·  3Comments