Skip to content
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/preset-create-react-app 4.0.1 breaks Storybook #237

Open
totszwai opened this issue Mar 4, 2022 · 4 comments
Open

@storybook/preset-create-react-app 4.0.1 breaks Storybook #237

totszwai opened this issue Mar 4, 2022 · 4 comments

Comments

@totszwai
Copy link

totszwai commented Mar 4, 2022

I mainly upgraded/added that preset because Storybook is telling people to add it...

WARN Storybook support for Create React App is now a separate preset.
WARN To use the new preset, install @storybook/preset-create-react-app and add it to the list of addons in your .storybook/main.js config file.
WARN The built-in preset has been disabled in Storybook 6.0.

Just upgraded to the latest 4.0.1 and Storybook won't load... it just show the spinning icon with no real helpful error messages...

Version 3.2.0 works, but I don't want to use that version because I need [email protected]...

$ npm ls react-docgen-typescript
@gravity/[email protected] /home/eto/projects/gravity/ui-common/packages/gravity-lang
├─┬ @storybook/[email protected]
│ └─┬ [email protected]
│   └── [email protected] 
└─┬ @storybook/[email protected]
  └─┬ @storybook/[email protected]
    └── [email protected] 

image

Storybook itself compiles fine with no errors.
image

@ronderksen
Copy link

I had the same issue, couldn't find a way to solve it except reverting version to v3.2.0.

@dpehrson
Copy link

Just ran into this myself while doing regular dependency update maintenance on a codebase. Even 4.0.0 seems to cause this problem. Opted to just stay on 3.2.0.

@nosovsh
Copy link

nosovsh commented May 3, 2022

confirming, the same problem. Reverting to 3.2.0 helps

@mateuszpigula
Copy link

In my case this solution worked:

yarn add -D @storybook/builder-webpack5
yarn add -D @storybook/manager-webpack5

bump react-scripts to version ^5.0.1
and adding this to storybook/main.js:

  core: {
    builder: 'webpack5',
  },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants