diff --git a/src/client/index.ts b/src/client/index.ts index 0c87ee3..6606899 100644 --- a/src/client/index.ts +++ b/src/client/index.ts @@ -5,8 +5,9 @@ import type { } from '@trpc/server' import { createFlatProxy, createRecursiveProxy } from '@trpc/server/shared' import { hash } from 'ohash' -import { useAsyncData, useState } from 'nuxt/app' import type { DecoratedProcedureRecord } from './types' +// @ts-ignore: Nuxt internal +import { useAsyncData, useState } from '#imports' /** * Calculates the key used for `useAsyncData` call diff --git a/tsup.config.ts b/tsup.config.ts index 73d3a7e..15a4a82 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -5,7 +5,7 @@ export default defineConfig({ format: ['cjs', 'esm'], splitting: false, clean: true, - external: ['#app'], + external: ['#app', '#imports'], dts: true, // @ts-expect-error: Missing type outExtension({ format }) {