title: Missing preload-helper export in vite package when building Nuxt 3 app
body: <p>I'm creating an Nuxt 3 application and it works fine when i run <code>npm run dev</code>. Though when I want to build the app with <code>npm run build</code> I get this error:</p>
  <pre class="lang-bash prettyprint-override"><code>[vite:resolve] Missing &quot;./preload-helper&quot; export in &quot;vite&quot; package
  </code></pre>
  <p>I'm using Nuxt version <code>3.0.0-rc.6</code></p>
  <p><strong>My package.json</strong></p>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;private&quot;: true,
    &quot;scripts&quot;: {
      &quot;build&quot;: &quot;nuxt build&quot;,
      &quot;dev&quot;: &quot;nuxt dev&quot;,
      &quot;generate&quot;: &quot;nuxt generate&quot;,
      &quot;preview&quot;: &quot;nuxt preview&quot;,
      &quot;test:unit&quot;: &quot;vitest --config ./vitest.config.js&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@vitejs/plugin-vue&quot;: &quot;~3.0.0&quot;,
      &quot;@vue/test-utils&quot;: &quot;~2.0.0&quot;,
      &quot;jsdom&quot;: &quot;~20.0.0&quot;,
      &quot;nuxt&quot;: &quot;3.0.0-rc.6&quot;,
      &quot;sass&quot;: &quot;^1.53.0&quot;,
      &quot;sass-loader&quot;: &quot;^13.0.2&quot;,
      &quot;vitest&quot;: &quot;~0.18.0&quot;
    }
  }
  </code></pre>
  <p><strong>My nuxt.config.ts</strong></p>
  <pre class="lang-js prettyprint-override"><code>import { defineNuxtConfig } from 'nuxt';
  
  export default defineNuxtConfig({
    autoImports: {
      dirs: [
        // Scan composables from nested directories
        'composables/**'
      ]
    },
    css: [&quot;@/assets/styles/main.scss&quot;],
    vite: {
        css: {
            preprocessorOptions: {
                scss: {
                  additionalData: '@import &quot;@/assets/styles/variables.scss&quot;;'
                }
            }
        }
    }
  })
  </code></pre>
  <p><strong>My tsconfig.json</strong></p>
  <pre class="lang-json prettyprint-override"><code>{
    // https://v3.nuxtjs.org/concepts/typescript
    &quot;extends&quot;: &quot;./.nuxt/tsconfig.json&quot;
  }
  </code></pre>
  <p>I've been looking for an answer for a while now in the documentation, Stackoverflow and Google - but I didn't come any closer to a solution.</p>
  <p>Does anyone know what this error means and how I can fix it? Thanks in advance</p>