diff --git a/packages/kit/src/template.ts b/packages/kit/src/template.ts index 1b3f97360e..ccaf936f6c 100644 --- a/packages/kit/src/template.ts +++ b/packages/kit/src/template.ts @@ -230,6 +230,7 @@ export async function _generateTypes (nuxt: Nuxt) { : nuxt.options.buildDir tsConfig.compilerOptions = tsConfig.compilerOptions || {} + tsConfig.compilerOptions.paths = tsConfig.compilerOptions.paths || {} tsConfig.include = tsConfig.include || [] for (const alias in aliases) {