-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Compatibility with [email protected] (Create React App) #1073
Comments
Congrats on the release of the 1.0.0. We'll be taking a look at it asap, thanks for reporting! We will create a PR when compatible, which would be the 3.0.0 release. |
Thanks! |
Took a look and concluded that Storybook Everything works great, nice work on react-script, it's looking better and better every release. I don't want to wait too long re-adding storybook to create-react-app, but I'm conflicted on adding it whilst we're in alpha... 💭 |
Pretty cool. Does dynamic import work too? |
We use webpack 2, I don't see why not. Will check in the morning 😴 |
Ah, I forgot it's native there 😄 We also changed how we handle files: everything gets |
We will have to keep a watch out for the 2 webpack configs acting in very different ways. But we don't have to mimic CRA's webpack config, consumers can change theirs and thus change it to be compatible with any edge-case. I'm going to mark this issue as resolved, and set a reminder to create a PR when we're out of alpha. |
Do consumers have to create config for CRA integration? I thought it used to work without a config. |
@gaearon |
Might related to #1027 But, it doesn't compatible with
Code example: /* a.css */
@import "./b.css"; /* b.css */
:root {
/* ... */
} // Story file
import "./a.css"; |
@oriSomething are you using the alpha? if so, would you mind opening another issue for this problem? |
This has been fixed in Storybook is compatible with CRA without configuration out of the box, and we absolutely intend to keep it that way. Sorry if my comment before kinda suggested otherwise @gaearon |
I've checked, and the bug is being fixed |
We recently released 1.0 of
react-scripts
:https://facebook.github.io/react/blog/2017/05/18/whats-new-in-create-react-app.html
It includes many changes, and people have been reporting that it’s incompatible with React Storybook as it exists now: facebook/create-react-app#2225.
I imagine there's both some sort of dependency bugs in npm, and just regular incompatibilities (e.g. our Babel preset has updated and we need other tools to catch up with supporting dynamic
import()
).For this reason, I have removed React Storybook integration from our docs: facebook/create-react-app#2252. I would be happy to add it back once it is compatible out of the box again. Thanks!
The text was updated successfully, but these errors were encountered: