-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Can't run storybook with app based on create-react-app #3035
Comments
Can you please share your root |
My
This is for Emotion and what I had to add to support it according to their docs |
you need to add |
Thank you. In
And now Storybook comes up. Is this documented somewhere and I just missed it, or is this one of those basic React + Babel things that I should already know? (I have very little experience with configuring JS projects, hence my use of Create React App). |
Yes, if we speak about the fact that storybook picks up your root |
Actually, what I realized was I was using Emotion's babel plugin wrong. I shouldn't have had a |
I saw same error with |
Issue details
I globally installed storybook's CLI, then ran
getstorybook
followed bynpm run storybook
, and it fails with an Unexpected token error in the default./src/stories/index.js
file. I'm running this on an app built on create-react-app (NOT ejected) + React 15 but since upgraded to React 16.Steps to reproduce
npm install -g @storybook/cli
getstorybook
npm run storybook
This is the output of
npm run storybook
:Please specify which version of Storybook and optionally any affected addons that you're running
@storybook/cli@3.3.13
(Global)@storybook/addon-actions@3.3.13
@storybook/addon-links@3.3.13
@storybook/addons@3.3.13
@storybook/react@3.3.13
Affected platforms
react@16.2.0
react-scripts@1.1.1
Screenshots / Screencast / Code Snippets (Optional)
The text was updated successfully, but these errors were encountered: