File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ async function initNuxt (nuxt: Nuxt) {
72
72
73
73
// Set nitro resolutions for types that might be obscured with shamefully-hoist=false
74
74
nuxt . options . nitro . typescript = defu ( nuxt . options . nitro . typescript , {
75
- tsConfig : { compilerOptions : { paths } }
75
+ tsConfig : { compilerOptions : { paths : { ... paths } } }
76
76
} )
77
77
78
78
// Add nuxt types
@@ -88,7 +88,7 @@ async function initNuxt (nuxt: Nuxt) {
88
88
opts . references . push ( { path : resolve ( nuxt . options . buildDir , 'types/app.config.d.ts' ) } )
89
89
90
90
// Set Nuxt resolutions for types that might be obscured with shamefully-hoist=false
91
- opts . tsConfig . compilerOptions = defu ( opts . tsConfig . compilerOptions , { paths } )
91
+ opts . tsConfig . compilerOptions = defu ( opts . tsConfig . compilerOptions , { paths : { ... paths } } )
92
92
93
93
for ( const layer of nuxt . options . _layers ) {
94
94
const declaration = join ( layer . cwd , 'index.d.ts' )
You can’t perform that action at this time.
0 commit comments