Skip to content

Commit

Permalink
fix: types for runtime/plugin.ts not being created correctly (#220)
Browse files Browse the repository at this point in the history
* import defineNuxtPlugin from #app instea of #imports

* nuxt/app
  • Loading branch information
StevenPewsey authored Sep 16, 2024
1 parent 35cbed3 commit 28ddc1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/runtime/plugin.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down

0 comments on commit 28ddc1a

Please sign in to comment.