Skip to content

Commit cf251bd

Browse files
committed
fix(kit): handle loading nuxt 4+
1 parent 088a86f commit cf251bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/kit/src/loader/nuxt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export async function loadNuxt (opts: LoadNuxtOptions): Promise<Nuxt> {
3838
const rootDir = pathToFileURL(opts.cwd || process.cwd()).href
3939

4040
// Nuxt 3
41-
if (majorVersion === 3) {
41+
if (majorVersion && majorVersion >= 3) {
4242
const { loadNuxt } = await importModule((pkg as any)._name || pkg.name, rootDir)
4343
const nuxt = await loadNuxt(opts)
4444
return nuxt

0 commit comments

Comments
 (0)