[Bug]: Error when try to add storybook@7 to Angular@15 by using this command npx storybook@7 init --type angular
#31312
-
Describe the bugTry to add storybook@7 to angular15:
in
Reproduction linkReproduction steps
SystemStorybook Environment Info:
System:
OS: macOS 15.4.1
CPU: (8) arm64 Apple M1 Pro
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.17.0 - ~/.nvm/versions/node/v20.17.0/bin/node
npm: 10.8.2 - ~/.nvm/versions/node/v20.17.0/bin/npm <----- active
Browsers:
Chrome: 135.0.7049.115
Edge: 135.0.3179.98
Safari: 18.4
npmPackages:
@storybook/addon-essentials: ^7.6.20 => 7.6.20 Additional contextpackage.json
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
** Disclaimer** This information might be inaccurate, due to it being generated automatically
|
Beta Was this translation helpful? Give feedback.
-
No luck after running the command |
Beta Was this translation helpful? Give feedback.
-
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$"
}
} |
Beta Was this translation helpful? Give feedback.
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.