TanStack / TanStack/query

Query V6 for Svelte warning on building

Open
#9,740 0 comments 4 reactions 1 assignee View on GitHub

@lachlancollins is already working on this.

Since Oct 12, 2025.

package: svelte-query
Dominant language
TypeScript
Stars
50.3k
Forks
4.2k
Avg merge
18h 25m
Merged PRs (30d)
200

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.