yarn add -D @storybook/preset-scss
yarn remove sass-loader style-loader css-loader
yarn add -D sass-loader@10.1.1 style-loader@2.0.0 css-loader@5.2.6
// .storybook/main.js
module.exports = {
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/preset-scss',
],
};