Skip to content

Commit

Permalink
fix(kit): module compatibility not working with module names
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Jul 6, 2023
1 parent 88f914e commit 6cabe69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kit/src/module/compatibility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 6cabe69

Please sign in to comment.