mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 00:23:53 +00:00
fix(kit): handle passing 'bare' relative paths to modules
This commit is contained in:
parent
c5a8eaae36
commit
c7fecd8a1e
@ -85,7 +85,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