Warning `"getQueryClientContext" and "setQueryClientContext" are imported from external module "@tanstack/query-core" but never used in ...`
Describe the bug
Using SvelteKit 1.22 and @tanstack/query 4.32.6 when I run npm run build I get this warning:
"getQueryClientContext" and "setQueryClientContext" are imported from external module "@tanstack/query-core" but never used in "node_modules/ @tanstack/svelte-query/build/lib/createQueries.js", "node_modules/@tanstack/svelte-query/build/lib/createMutation.js", "node_modules/@tanstac k/svelte-query/build/lib/createInfiniteQuery.js", "node_modules/@tanstack/svelte-query/build/lib/useIsMutating.js", "node_modules/@tanstack/s velte-query/build/lib/useIsFetching.js", "node_modules/@tanstack/svelte-query/build/lib/useHydrate.js", "node_modules/@tanstack/svelte-query/ build/lib/QueryClientProvider.svelte", "node_modules/@tanstack/svelte-query/build/lib/createBaseQuery.js", "node_modules/@tanstack/svelte-que ry/build/lib/createQuery.js", "node_modules/@tanstack/svelte-query/build/lib/index.js",
"node_modules/@tanstack/svelte-query-devtools/node_mo
dules/@tanstack/svelte-query/build/lib/createQueries.js", "node_modules/@tanstack/svelte-query-devtools/node_modules/@tanstack/svelte-query/b
uild/lib/createInfiniteQuery.js", "node_modules/@tanstack/svelte-query-devtools/node_modules/@tanstack/svelte-query/build/lib/useIsFetching.j
s", "node_modules/@tanstack/svelte-query-devtools/node_modules/@tanstack/svelte-query/build/lib/createMutation.js", "node_modules/@tanstack/s
velte-query-devtools/node_modules/@tanstack/svelte-query/build/lib/useHydrate.js", "node_modules/@tanstack/svelte-query-devtools/node_modules
/@tanstack/svelte-query/build/lib/useIsMutating.js", "node_modules/@tanstack/svelte-query-devtools/node_modules/@tanstack/svelte-query/build/
s lib/QueryClientProvider.svelte", "node_modules/@tanstack/svelte-query-devtools/node_modules/@tanstack/svelte-query/build/lib/createBaseQuery. js",
"node_modules/@tanstack/svelte-query-devtools/node_modules/@tanstack/svelte-query/build/lib/createQuery.js" and "node_modules/@tanstack/
svelte-query-devtools/node_modules/@tanstack/svelte-query/build/lib/index.js".
Why?
Platform
Windows 10 x64
Tanstack Query adapter
svelte-query
TanStack Query version
4.32.6
TypeScript version
5.1.6
Hi @frederikhors, can you check if this happens in v4.30.0 and v4.31.0?
4.30.0: getQueryClientContext is not exported.
4.31.0: same warning.
@frederikhors @lachlancollins what's the status here? Is this still an issue or can we close it? If not, what are the plans on fixing it please?
@frederikhors @lachlancollins what's the status here? Is this still an issue or can we close it? If not, what are the plans on fixing it please?
I'm 99% sure this isn't an issue with svelte-query, but it may have been an individual project configuration issue. If it's still occurring in your project, let us know.
It is not occurring with latest versions.