title: TypeError: this.getOptions is not a function ( not vue ) - storybook
body: <p><strong>package.json</strong></p>
  <pre><code>  &quot;dependencies&quot;: {
      &quot;express&quot;: &quot;^4.17.1&quot;,
      &quot;express-static-gzip&quot;: &quot;^2.1.1&quot;,
      &quot;react&quot;: &quot;^17.0.2&quot;,
      &quot;react-dom&quot;: &quot;^17.0.2&quot;,
      &quot;react-helmet-async&quot;: &quot;^1.1.2&quot;,
      &quot;webpack-cli&quot;: &quot;^4.9.1&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@babel/core&quot;: &quot;^7.16.0&quot;,
      &quot;@storybook/addon-actions&quot;: &quot;^6.3.12&quot;,
      &quot;@storybook/addon-docs&quot;: &quot;^6.3.12&quot;,
      &quot;@storybook/addon-essentials&quot;: &quot;^6.1.21&quot;,
      &quot;@storybook/addon-links&quot;: &quot;^6.3.12&quot;,
      &quot;@storybook/preset-scss&quot;: &quot;^1.0.3&quot;,
      &quot;@storybook/react&quot;: &quot;^6.0.28&quot;,
      &quot;@types/express&quot;: &quot;^4.17.13&quot;,
      &quot;@types/react&quot;: &quot;^17.0.33&quot;,
      &quot;@types/react-dom&quot;: &quot;^17.0.10&quot;,
      &quot;@typescript-eslint/eslint-plugin&quot;: &quot;^5.2.0&quot;,
      &quot;@typescript-eslint/parser&quot;: &quot;^5.2.0&quot;,
      &quot;babel-loader&quot;: &quot;^8.2.3&quot;,
      &quot;clean-webpack-plugin&quot;: &quot;^4.0.0&quot;,
      &quot;compression-webpack-plugin&quot;: &quot;^9.0.0&quot;,
      &quot;css-loader&quot;: &quot;^6.5.1&quot;,
      &quot;eslint&quot;: &quot;^7.32.0&quot;,
      &quot;eslint-config-airbnb&quot;: &quot;^18.2.1&quot;,
      &quot;eslint-config-prettier&quot;: &quot;^8.3.0&quot;,
      &quot;eslint-plugin-import&quot;: &quot;^2.25.2&quot;,
      &quot;eslint-plugin-jsx-a11y&quot;: &quot;^6.4.1&quot;,
      &quot;eslint-plugin-prettier&quot;: &quot;^4.0.0&quot;,
      &quot;eslint-plugin-react&quot;: &quot;^7.26.1&quot;,
      &quot;eslint-plugin-react-hooks&quot;: &quot;^1.7.0&quot;,
      &quot;html-webpack-plugin&quot;: &quot;^5.5.0&quot;,
      &quot;mini-css-extract-plugin&quot;: &quot;^2.4.4&quot;,
      &quot;prettier&quot;: &quot;^2.4.1&quot;,
      &quot;sass&quot;: &quot;^1.43.4&quot;,
      &quot;sass-loader&quot;: &quot;^12.3.0&quot;,
      &quot;terser-webpack-plugin&quot;: &quot;^5.2.4&quot;,
      &quot;ts-loader&quot;: &quot;^9.2.6&quot;,
      &quot;typescript&quot;: &quot;^4.4.4&quot;,
      &quot;webpack&quot;: &quot;^5.61.0&quot;,
      &quot;webpack-node-externals&quot;: &quot;^3.0.0&quot;
    },
  </code></pre>
  <blockquote>
  <p>ERROR in ./src/client/components/Button/styles.scss
  Module build failed (from ./node_modules/style-loader/dist/cjs.js):
  TypeError: this.getOptions is not a function</p>
  </blockquote>
  <p>Error occurs on <code>style-loader</code>, but I don't even use it , it happens because I use <code>scss</code> file in my <code>typescript</code> file. Below you can see my <code>.storybook/main.js</code> file</p>
  <pre><code>const path = require('path');
  
  module.exports = {
    stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
    addons: [
      '@storybook/addon-links',
      '@storybook/addon-essentials',
      '@storybook/preset-scss',
    ],
  
    webpackFinal: async (config) =&gt; {
      config.resolve.modules = [
        ...(config.resolve.modules || []),
        path.resolve(__dirname, '../src/client'),
      ];
  
      return config;
    },
  };
  </code></pre>
  <p>I've also tried to add loaders there</p>
  <pre><code>config.module.rules.push({
    test: /\.scss$/,
    use: [&quot;style-loader&quot;, &quot;css-loader&quot;, &quot;sass-loader&quot;],
    include: path.resolve(__dirname, &quot;../&quot;),
  });
  </code></pre>
  <p>same as in my webpack file , but it still doesn't work, I use <code>webpack 5</code> version , I've seen advices of making <code>sass-loader@10</code> , but it also doesn't work. Any ideas ?</p>
  <p>On build, I see that storybook use <code>webpack 4</code> , maybe this is the reason</p>
  <pre><code>✖ ｢wdm｣: Hash: 67059970e52c8e028c83
  Version: webpack 4.46.0
  Time: 7261ms
  Built at: 11/15/2021 8:33:57 PM
  </code></pre>