Skip to content

Commit

Permalink
fix(kit): handle loading nuxt 4
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Jun 26, 2024
1 parent 088a86f commit cf251bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kit/src/loader/nuxt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 38,7 @@ export async function loadNuxt (opts: LoadNuxtOptions): Promise<Nuxt> {
const rootDir = pathToFileURL(opts.cwd || process.cwd()).href

// Nuxt 3
if (majorVersion === 3) {
if (majorVersion && majorVersion >= 3) {
const { loadNuxt } = await importModule((pkg as any)._name || pkg.name, rootDir)
const nuxt = await loadNuxt(opts)
return nuxt
Expand Down

0 comments on commit cf251bd

Please sign in to comment.