From 3a4fa3e23d12174ce9b82038012fd1a614dce379 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Thu, 28 Nov 2024 10:43:29 +0100 Subject: [PATCH] fix(plugins): infer type from `#app` --- src/runtime/plugins/dns.server.ts | 2 ++ src/runtime/plugins/strapi.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/runtime/plugins/dns.server.ts b/src/runtime/plugins/dns.server.ts index 068b6a09..32ff5507 100644 --- a/src/runtime/plugins/dns.server.ts +++ b/src/runtime/plugins/dns.server.ts @@ -1,4 +1,6 @@ import { defineNuxtPlugin } from '#imports' +// FIXME: https://github.com/nuxt/module-builder/issues/141#issuecomment-2078248248 +import type {} from '#app' // Fixes `ECONNREFUSED` on Node 18: https://github.com/node-fetch/node-fetch/issues/1624#issuecomment-1407717012 export default defineNuxtPlugin({ diff --git a/src/runtime/plugins/strapi.ts b/src/runtime/plugins/strapi.ts index 6324f782..3cba03ba 100644 --- a/src/runtime/plugins/strapi.ts +++ b/src/runtime/plugins/strapi.ts @@ -1,6 +1,8 @@ import { useStrapiAuth } from '../composables/useStrapiAuth' import { useStrapiUser } from '../composables/useStrapiUser' import { defineNuxtPlugin } from '#imports' +// FIXME: https://github.com/nuxt/module-builder/issues/141#issuecomment-2078248248 +import type {} from '#app' export default defineNuxtPlugin(async () => { const user = useStrapiUser()