Skip to content

[Bug]: Error when try to add storybook@7 to Angular@15 by using this command npx storybook@7 init --type angular #31312

Closed Answered by valentinpalkovic
khunemz asked this question in Help
Discussion options

You must be logged in to vote

Hi @khunemz

Thank you for opening the issue!

It seems that you have React 19 installed as a dependency, although Storybook 7 only supports React 16-18. Either downgrade your React version or use npm's "overrides" field. Then, try to initialize again.

{
  "dependencies": {
     "react": "^19.0.0"
  },
  "overrides": {
     "react": "react$"
  }
}

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by khunemz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
2 participants
Converted from issue

This discussion was converted from issue #31296 on April 29, 2025 21:45.