mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 07:05:11 +00:00
fix(kit): handle passing 'bare' relative paths to modules
This commit is contained in:
parent
01e00963bc
commit
33e2d0a5f3
@ -79,7 +79,7 @@ export async function loadNuxtModuleInstance (nuxtModule: string | NuxtModule, n
|
||||
|
||||
// Import if input is string
|
||||
if (typeof nuxtModule === 'string') {
|
||||
const paths = [join(nuxtModule, 'nuxt'), join(nuxtModule, 'module'), nuxtModule]
|
||||
const paths = [join(nuxtModule, 'nuxt'), join(nuxtModule, 'module'), nuxtModule, join(nuxt.options.rootDir, nuxtModule)]
|
||||
let error: unknown
|
||||
for (const path of paths) {
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user