diff --git a/packages/nuxi/src/commands/prepare.ts b/packages/nuxi/src/commands/prepare.ts index 121dad7873..4e194e03eb 100644 --- a/packages/nuxi/src/commands/prepare.ts +++ b/packages/nuxi/src/commands/prepare.ts @@ -1,4 +1,3 @@ -import { buildNuxt } from '@nuxt/kit' import { relative, resolve } from 'pathe' import { consola } from 'consola' import { clearDir } from '../utils/fs' @@ -16,7 +15,7 @@ export default defineNuxtCommand({ process.env.NODE_ENV = process.env.NODE_ENV || 'production' const rootDir = resolve(args._[0] || '.') - const { loadNuxt } = await loadKit(rootDir) + const { loadNuxt, buildNuxt } = await loadKit(rootDir) const nuxt = await loadNuxt({ rootDir, overrides: {