Incompatibility with "babel-core": "^7.0.0-beta.2"
See original GitHub issueHello!
The issue I am running across pertains to a mismatch between the babel-core version my project is using, and the babel-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:
ERROR in ./.storybook/config.js
Module build failed: Error: [BABEL]... /node_modules/@storybook/react/node_modules/babel-preset-react/lib/index.js.env is not supported in a preset
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 of babel-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!
Issue Analytics
- State:
- Created 6 years ago
- Reactions:7
- Comments:10 (1 by maintainers)

Top Related StackOverflow Question
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
storybookwith Babel 7 now.Example:
Should be fixed with #2494