Query V6 for Svelte warning on building
@lachlancollins 已经在做这个了。
开始于 2025年10月12日。
评估
这个 Issue 还没有评估数据。
描述
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
- 主要语言
- TypeScript
- 星标
- 50.3k
- 派生
- 4.2k
- 平均合并
- 22 小时 33 分钟
- 30 天内合并 PR
- 214
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
TanStack/query 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
-
难度 2/5 1-3 小时 新手友好度 84/100
-
难度 4/5 3-5 天 新手友好度 45/100
-
难度 4/5 3-5 天 新手友好度 40/100
-
难度 4/5 3-5 天 新手友好度 48/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
bcgov/bc-wallet-mobile#4761 · 1 条评论 ·
-
external-issue to-triage
难度 2/5 1-3 小时 新手友好度 88/100
-
area-deployment area-integrations triage:bot-seen
难度 2/5 半天 新手友好度 86/100
-
难度 2/5 1-3 小时 新手友好度 82/100
-
refactor
难度 2/5 1-3 小时 新手友好度 84/100