Query V6 for Svelte warning on building
Open
@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
- Go to https://codesandbox.io/p/devbox/zealous-mcclintock-sy2cgk?workspaceId=ws_UvGZaEmbN6a2bMJQSn24kF
- run
npm run build - 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.