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".
No warnings to appear during build.
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:
Your minimal, reproducible example
https://codesandbox.io/p/devbox/zealous-mcclintock-sy2cgk?workspaceId=ws_UvGZaEmbN6a2bMJQSn24kF
Steps to reproduce
npm run buildExpected 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