fix(nuxt): update module path for defaults (#30371)

This commit is contained in:
Daniel Roe 2024-12-26 01:17:46 +00:00 committed by GitHub
parent ca39bf9a5c
commit 44e0256293
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -104,7 +104,7 @@ export const appDefaults: NuxtTypeTemplate = {
getContents: (ctx) => {
const isV4 = ctx.nuxt.options.future.compatibilityVersion === 4
return `
declare module '#app/defaults' {
declare module 'nuxt/app/defaults' {
type DefaultAsyncDataErrorValue = ${isV4 ? 'undefined' : 'null'}
type DefaultAsyncDataValue = ${isV4 ? 'undefined' : 'null'}
type DefaultErrorValue = ${isV4 ? 'undefined' : 'null'}