diff --git a/src/nitro.ts b/src/nitro.ts index f64cab386..9481b8af5 100644 --- a/src/nitro.ts +++ b/src/nitro.ts @@ -21,7 +21,7 @@ import type { Nuxt } from '@nuxt/schema' import type { LocaleInfo } from './types' import { resolveI18nDir } from './layers' import { i18nVirtualLoggerPlugin } from './virtual-logger' -import type { I18nNuxtContext } from '~/src/context' +import type { I18nNuxtContext } from './context' const debug = createDebug('@nuxtjs/i18n:nitro') diff --git a/src/pages.ts b/src/pages.ts index 0b6a2cfc3..0cc11a5d5 100644 --- a/src/pages.ts +++ b/src/pages.ts @@ -13,7 +13,7 @@ import { NUXT_I18N_COMPOSABLE_DEFINE_ROUTE } from './constants' import type { Nuxt, NuxtPage } from '@nuxt/schema' import type { NuxtI18nOptions, CustomRoutePages, ComputedRouteOptions, RouteOptionsResolver } from './types' import type { Node, ObjectExpression, ArrayExpression } from '@babel/types' -import type { I18nNuxtContext } from '~/src/context' +import type { I18nNuxtContext } from './context' const debug = createDebug('@nuxtjs/i18n:pages') diff --git a/src/runtime/routing/compatibles/routing.ts b/src/runtime/routing/compatibles/routing.ts index d457cadd7..379ed385d 100644 --- a/src/runtime/routing/compatibles/routing.ts +++ b/src/runtime/routing/compatibles/routing.ts @@ -20,7 +20,7 @@ import type { RouteLocationNormalizedLoaded, RouteLocationNormalized } from 'vue-router' -import type { ModulePublicRuntimeConfig } from '~/src/module' +import type { ModulePublicRuntimeConfig } from '../../../module' const RESOLVED_PREFIXED = new Set(['prefix_and_default', 'prefix_except_default'])