Storybook 8 does not use Babel compiler? #26893
Unanswered
flex-hyuntae
asked this question in
Help
Replies: 1 comment 7 replies
-
We have removed babel from the webpack5 builder. Please read the migration docs: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#removed-babelcore-and-babel-loader-from-storybookbuilder-webpack5 You have to install the appropriate compiler addon (swc or babel) |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
When i use Storybook 7 and run
storybook dev
logs are like this
but update Storybook 8 using
yarn dlx storybook@latest upgrade
this commandafter run
storybook dev
logs are like thisAlso i check webpack
--debug-webpack
webpack config module Storybook 7 is
but Storybook 8 is
my babel config is
I think When i use Storybook 8 Babel compiler not working
because module in webpack config has not babel preset, plugins (but Storybook 7 has)
and my storybook result also has error like
ReferenceError: ${ComponentName} is not defined
Do you have any solution for me?
Additional information
No response
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions