-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
68 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
diff --git a/dist/index.mjs b/dist/index.mjs | ||
index 6d84162e54e2b02c48e024ce937903392e332ff4..5cc1a630dd69720667bd468944b1342154d9b830 100644 | ||
--- a/dist/index.mjs | ||
+++ b/dist/index.mjs | ||
@@ -2428,6 +2428,7 @@ const normalizeModuleTranspilePath = (p) => { | ||
}; | ||
async function loadNuxtModuleInstance(nuxtModule, nuxt = useNuxt()) { | ||
let buildTimeModuleMeta = {}; | ||
+ const orig = nuxtModule | ||
const jiti = createJiti(nuxt.options.rootDir, { alias: nuxt.options.alias }); | ||
if (typeof nuxtModule === "string") { | ||
const paths = [join(nuxtModule, "nuxt"), join(nuxtModule, "module"), nuxtModule, join(nuxt.options.rootDir, nuxtModule)]; | ||
@@ -2456,6 +2457,7 @@ async function loadNuxtModuleInstance(nuxtModule, nuxt = useNuxt()) { | ||
} | ||
} | ||
if (typeof nuxtModule !== "function") { | ||
+ console.log(orig, nuxtModule) | ||
throw new TypeError("Nuxt module should be a function: " + nuxtModule); | ||
} | ||
return { nuxtModule, buildTimeModuleMeta }; |
Oops, something went wrong.