From 7111b6cf441b649549e6eac1739d1dafa5165dc8 Mon Sep 17 00:00:00 2001 From: pooya parsa Date: Fri, 10 Feb 2023 17:33:06 +0100 Subject: [PATCH] fix(nuxt): avoid recursive import in nitro renderer (#18948) Co-authored-by: Daniel Roe --- packages/nuxt/src/core/runtime/nitro/renderer.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/nuxt/src/core/runtime/nitro/renderer.ts b/packages/nuxt/src/core/runtime/nitro/renderer.ts index 32139c0651..f3db7a4fdf 100644 --- a/packages/nuxt/src/core/runtime/nitro/renderer.ts +++ b/packages/nuxt/src/core/runtime/nitro/renderer.ts @@ -7,8 +7,10 @@ import devalue from '@nuxt/devalue' import destr from 'destr' import { joinURL } from 'ufo' import { renderToString as _renderToString } from 'vue/server-renderer' -import { useRuntimeConfig, useNitroApp, defineRenderHandler, getRouteRules } from '#internal/nitro' +import { useRuntimeConfig, defineRenderHandler, getRouteRules } from '#internal/nitro' import { hash } from 'ohash' +// @ts-ignore +import { useNitroApp } from '#internal/nitro/app' // eslint-disable-next-line import/no-restricted-paths import type { NuxtApp, NuxtSSRContext } from '#app/nuxt' // @ts-ignore