-
-
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
Incompatibility with "babel-core": "^7.0.0-beta.2" #2062
Comments
have the same issue here using storybook |
I'm also interested in using storybook with Babel 7. It's currently in beta, but should have a stable release soon, at which point I am sure a lot of other tools will turn down support for Babel 6. |
To get around this, I decided to override the default Webpack config rules using the method described here: https://storybook.js.org/configurations/custom-webpack-config/. I can run Example:
|
@MrSaints the issue I'm having is that, even when including |
@rsolomon I could possibly help if you share your Webpack / Babel configuration. It is definitely picking up on my |
|
Note that exact config is picked up fine by my main app. Even changing the above to invalid config options (ex: |
@rsolomon What's your directory structure like? And can you include your Webpack config? Did you also specify a custom Webpack config for Storybook? |
The config that Storybook is using looks like this:
The problem is that
I had the same setup with babel 6, except using the older |
Should be fixed with #2494 |
Hello!
The issue I am running across pertains to a mismatch between the
babel-core
version my project is using, and thebabel-preset-react
version@storybook/react
is using.As the issue title says, the
babel-core
dependency in my project is^7.0.0-beta.2
.The project is using
@storybook/react
version^3.2.12
.After running with
yarn run storybook
, and pulling up Storybook in my browser, I'm seeing the following:I understand that this is due to a mismatch between the version of
babel-core
in my project (^7.0.0-beta.2
), and the version ofbabel-preset-react
(^6.24.1
) in the@storybook/react
project.Is there a version of Storybook I can use to resolve this issue, or any custom configuration I can provide to ensure that Storybook runs with using
"babel-preset-react": "^7.0.0-beta.2"
?Thanks!
The text was updated successfully, but these errors were encountered: