From 28ddc1a88157454a528ea68ac5e720c97db829d7 Mon Sep 17 00:00:00 2001 From: Steve Pewsey Date: Mon, 16 Sep 2024 17:21:28 +0100 Subject: [PATCH] fix: types for runtime/plugin.ts not being created correctly (#220) * import defineNuxtPlugin from #app instea of #imports * nuxt/app --- src/runtime/plugin.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/runtime/plugin.ts b/src/runtime/plugin.ts index f631568..df628b7 100644 --- a/src/runtime/plugin.ts +++ b/src/runtime/plugin.ts @@ -1,9 +1,10 @@ import { isRepositoryEndpoint, getRepositoryName, type Client } from '@prismicio/client' import { createPrismic } from '@prismicio/vue' +import { defineNuxtPlugin } from 'nuxt/app' import type { PrismicModuleOptions } from '../types' import NuxtLink from '#app/components/nuxt-link' -import { defineNuxtPlugin, useCookie, useRequestEvent, onNuxtReady, refreshNuxtData, useHead, useRuntimeConfig, useRouter } from '#imports' +import { useCookie, useRequestEvent, onNuxtReady, refreshNuxtData, useHead, useRuntimeConfig, useRouter } from '#imports' // @ts-expect-error vfs cannot be resolved here import _client from '#build/prismic/proxy/client'