Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Query V6 for Svelte warning on building

未关闭
#9,740 0 条评论 4 个 reaction 已指派 1 人 在 GitHub 查看

@lachlancollins 已经在做这个了。

开始于 2025年10月12日。

评估

这个 Issue 还没有评估数据。

描述

package: svelte-query
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

主要语言
TypeScript
星标
50.3k
派生
4.2k
平均合并
22 小时 33 分钟
30 天内合并 PR
214

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

TanStack/query 的其他 Issue

查看 TanStack/query 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。