diff --git a/packages/nuxt3/src/core/nuxt.ts b/packages/nuxt3/src/core/nuxt.ts index 0a70c5f03c..6d70d95f89 100644 --- a/packages/nuxt3/src/core/nuxt.ts +++ b/packages/nuxt3/src/core/nuxt.ts @@ -101,7 +101,7 @@ export async function loadNuxt (opts: LoadNuxtOptions): Promise { // Temporary until finding better placement for each options.appDir = options.alias['#app'] = resolve(distDir, 'app') options._majorVersion = 3 - options.buildModules.push(pagesModule, metaModule, componentsModule, autoImportsModule) + options._modules.push(pagesModule, metaModule, componentsModule, autoImportsModule) options.modulesDir.push(resolve(pkgDir, 'node_modules')) options.alias['vue-demi'] = resolve(options.appDir, 'compat/vue-demi') options.alias['@vue/composition-api'] = resolve(options.appDir, 'compat/capi')