Skip to content

Commit

Permalink
Edit peer deps react error message
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed Dec 13, 2022
1 parent a32abfd commit 0eafd67
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion code/lib/cli/src/ensure-react-peer-deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,22 @@ export function ensureReactPeerDeps() {
} catch (e) {
logger.error(dedent`
Starting in 7.0, react and react-dom are now required peer dependencies of Storybook.
Please install react and react-dom in your project.
https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#react-peer-dependencies-required
It seems, that you haven't run Storybook's CLI to upgrade to the latest version.
The upgrade command will install the required peer dependencies for you and will take
care of other important auto migrations as well.
If you want to upgrade to the latest prerelease version, please run:
$ npx storybook@next upgrade --prerelease
Otherwise, please run:
$ npx storybook upgrade
If you do not want to use the upgrade commands,
please install react and react-dom in your project manually.
npm:
$ npm add react react-dom --dev
Expand Down

0 comments on commit 0eafd67

Please sign in to comment.