From 6cabe69ce0be10e63b59148f09bc4a3b4d3436e2 Mon Sep 17 00:00:00 2001 From: Harlan Wilton Date: Thu, 6 Jul 2023 12:36:49 +1000 Subject: [PATCH] fix(kit): module compatibility not working with module names --- packages/kit/src/module/compatibility.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/kit/src/module/compatibility.ts b/packages/kit/src/module/compatibility.ts index 5ac087225c..860ed1fb76 100644 --- a/packages/kit/src/module/compatibility.ts +++ b/packages/kit/src/module/compatibility.ts @@ -46,7 +46,7 @@ export async function getNuxtModuleVersion (module: string | NuxtModule, nuxt: N return version } // it's possible that the module will be installed, it just hasn't been done yet, preemptively load the instance - if (typeof module !== 'string' && nuxt.options.modules.includes(moduleMeta.name)) { + if (nuxt.options.modules.includes(moduleMeta.name)) { const { buildTimeModuleMeta } = await loadNuxtModuleInstance(moduleMeta.name, nuxt) return buildTimeModuleMeta.version || false }