-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Confusing warning: "…simply add @storybook/preset-create-react-app
to your project."
#10213
Labels
Comments
@techieshark any chance you can contribute a PR to fix it? |
techieshark
added a commit
to techieshark/storybook
that referenced
this issue
Mar 27, 2020
@shilman yep done! Thanks : ) |
Do you need to add |
@jeremyzilar, the same question that I'm asking as it makes no sense to me. |
+1 for @jeremyzilar quesion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
After upgrading to Storybook 5.3.17, I ran 'yarn storybook' and see the following warning:
This is confusing, because I have "@storybook/preset-create-react-app" in my package.json.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A warning explaining more than "simply add
@storybook/preset-create-react-app
to your project.'".(Sidenote: searching the codebase for 'simply add', I ran across "simply add" as an example of "bad documentation").
I was confused for quite a while because I thought I needed to only add it to package.json.
It seems I actually am supposed to add it to the list of addons in
./storybook/main.js
:(Adding it has made the warning go away.)
Screenshots

Code snippets
Appears the message comes from here:
storybook/app/react/src/server/framework-preset-cra.ts
Line 18 in 7ba88f6
The text was updated successfully, but these errors were encountered: