code-forge-io / code-forge-io/react-router-devtools

Identifier '__vite__injectQuery' has already been declared error

未關閉
#247 12 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
TypeScript
星號
972
分支
55
PR 合併指標
30 天內沒有已合併 PR

描述

I got this error in browser console. Error is `Identifier '__vite__injectQuery' has already been declared` error.

These are steps I did,

Step 1 - Installed this - `npm install react-router-devtools -D`
Step 2 - Added to vite config file in first place - `reactRouterDevTools(),`
Step 3 - Add this tool with Tanstack devtool

```js
,
defaultOpen: true,
},
{
name: "TanStack Form",
render: ,
},
]}
eventBusConfig={{
connectToServerBus: true,
}}
/>
```

But I got that error. When I remove `` in TanStackDevtools code. My app work fine.

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

重現 issue 中描述的設定:安裝 react-router-devtools,將 reactRouterDevTools() 加入 Vite 設定,並在 TanStackDevtools 中將 EmbeddedDevTools 與 TanStack Form 外掛一起渲染。在宣告 __vite__injectQuery 的位置檢查 Vite 外掛和 devtools 整合。完成的判定標準是兩個 devtools 能夠一起運作,且不會出現重複識別碼錯誤。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
react, typescript, vite
領域
build-system, devtools, frontend
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
38/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。