From e006c5605b4813886ef57afd52add7ac29d1c860 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Wed, 20 Apr 2022 12:35:09 +0200 Subject: [PATCH] fix(kit): try canonical package name for edge release --- packages/kit/src/loader/nuxt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }