Skip to content
Source
Sign inSign up
TanStack/query

Query V6 for Svelte warning on building #9740

Opensergiocampama(GitHub profile, opens in a new tab) opened this issue 0 comments

Describe the bug

When building a SvelteKit project on the latest version that includes the latest version (6) of Tanstack Query, I get the following warning:

"notifyManager" and "replaceEqualDeep" are imported from external module "@tanstack/query-core" but never used in "node_modules/@tanstack/svelte-query/dist/useMutationState.svelte.js", "node_modules/@tanstack/svelte-query/dist/useHydrate.js", "node_modules/@tanstack/svelte-query/dist/QueryClientProvider.svelte", "node_modules/@tanstack/svelte-query/dist/createInfiniteQuery.js", "node_modules/@tanstack/svelte-query/dist/createQuery.js", "node_modules/@tanstack/svelte-query/dist/createMutation.svelte.js", "node_modules/@tanstack/svelte-query/dist/createQueries.svelte.js" and "node_modules/@tanstack/svelte-query/dist/index.js".

Your minimal, reproducible example

https://codesandbox.io/p/devbox/zealous-mcclintock-sy2cgk?workspaceId=ws_UvGZaEmbN6a2bMJQSn24kF

Steps to reproduce

  1. Go to https://codesandbox.io/p/devbox/zealous-mcclintock-sy2cgk?workspaceId=ws_UvGZaEmbN6a2bMJQSn24kF
  2. run npm run build
  3. See warning

Expected behavior

No warnings to appear during build.

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

macOS Tahoe 26 node 22.20.0

Tanstack Query adapter

svelte-query

TanStack Query version

6.0.0

TypeScript version

5.9.3

Additional context

No response

  1. lachlancollins assignedlachlancollins

  2. lachlancollins added labelspackage: svelte-query

Sign in to join this conversation.