diff --git a/packages/kit/src/loader/nuxt.ts b/packages/kit/src/loader/nuxt.ts index 1756f56540..3a79ebf993 100644 --- a/packages/kit/src/loader/nuxt.ts +++ b/packages/kit/src/loader/nuxt.ts @@ -38,7 +38,7 @@ export async function loadNuxt (opts: LoadNuxtOptions): Promise { // Nuxt 3 if (majorVersion === 3) { - const { loadNuxt } = await importModule(pkg.name, resolveOpts) + const { loadNuxt } = await importModule((pkg as any)._name || pkg.name, resolveOpts) const nuxt = await loadNuxt(opts) return nuxt }