title: Nuxt 3 - resolver.resolveModule is not a function
body: <p>I want to configure <code>style-resources</code> and use some variables globally in fresh Nuxt 3 project but when I am passing some options to nuxt.config file I am getting this error:</p>
  <p><code>Cannot start nuxt:  resolver.resolveModule is not a function</code></p>
  <p>My dependencies:</p>
  <pre><code>  &quot;devDependencies&quot;: {
      &quot;nuxt3&quot;: &quot;latest&quot;,
      &quot;prettier&quot;: &quot;^2.4.1&quot;
    },
    &quot;dependencies&quot;: {
      &quot;@nuxtjs/style-resources&quot;: &quot;^1.2.1&quot;,
      &quot;sass&quot;: &quot;^1.43.4&quot;
    }
  </code></pre>
  <p>nuxt.config.js</p>
  <pre><code>export default defineNuxtConfig({
    css: ['~/assets/main.scss'],
    buildModules: ['@nuxtjs/style-resources'],
    styleResources: {
      scss: ['./assets/variables.scss'],
    },
  });
  </code></pre>
  <p>I am using this library:
  <a href="https://github.com/nuxt-community/style-resources-module" rel="nofollow noreferrer">https://github.com/nuxt-community/style-resources-module</a></p>
  <p>I know Nuxt 3 is still in Beta release but maybe someone faced this issue already or knows different way to apply global resources</p>