diff --git a/docs/components/utils.ts b/docs/components/utils.ts index 935b56ef..18d4d24a 100644 --- a/docs/components/utils.ts +++ b/docs/components/utils.ts @@ -1,5 +1,6 @@ import Blobity from 'blobity' import type { InjectionKey, Ref } from 'vue' +import { isClient } from '@vueuse/core' const BlobityInjection: InjectionKey> = Symbol('blobity') @@ -18,7 +19,7 @@ const defaultOptions = { } export const useBlobity = createSharedComposable(() => { - const blobity = ref(new Blobity(defaultOptions as any)) + const blobity = ref(isClient ? new Blobity(defaultOptions as any) : (null as any)) provide(BlobityInjection, blobity)