New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Storybook fails for Angular 9 #13441
Comments
Storybook's UI uses https://github.com/storybookjs/storybook/blob/master/app/angular/package.json#L47-L48 Maybe it's some kind of monorepo-related issue? |
@shilman This kind of issue was previously reported before #8284 and even has a note here - https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#react-163 I know that it is older - but shows that this was not an issue caused by some specific project. I suppose it is because @emotion may require higher version of react or something related with that specific dependency. What kind of monorepo issue it could be so that it is fixed after adding react? |
I ran into a similar issue and it was because another package in my project was installing an older version of React. |
@AnimaMundi how you resolved this? Other packages could have other dependencies, but it should not affect this one as it has its own version of react as dependency specified. |
Fortunately for my case, the other packages that were depending on React were also compatible with React v16. I agree that Storybook should be shipping with it's own version of React, particularly for Angular projects where devs will have less knowledge of React and it's ecosystem. |
|
I have For angular developers: adding
to |
Yep, this works as I mentioned in description. But it seems redundant and increases bundle size. |
@victoriaunizhona missed that, thanks. totally agree! |
@victoriaunizhona does it help if you remove this dependency
|
Describe the bug
Storybook fails on start after running npm run docs:json && start-storybook -p 6006
I found the fix to install react and react dom, but why do I need to do this as it is IONIC + Angular.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It opens with no errors and shows storybook
Screenshots
Code snippets
System
Binaries:
Node: 12.4.0
npm: 6.14.6
Browsers:
Chrome: 86.0.4240.198
Edge: Spartan (44.18362.449.0)
npmPackages:
@storybook/addon-a11y: ^6.1.11 => 6.1.11
@storybook/addon-actions: ^6.1.10 => 6.1.11
@storybook/addon-essentials: ^6.1.10 => 6.1.11
@storybook/addon-links: ^6.1.10 => 6.1.11
@storybook/addon-notes: ^5.3.21 => 5.3.21
@storybook/addon-storysource: ^6.1.11 => 6.1.11
@storybook/angular: ^6.1.10 => 6.1.11
npmGlobalPackages:
@storybook/cli: 6.1.10
The text was updated successfully, but these errors were encountered: