Identifier '__vite__injectQuery' has already been declared error
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 38/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- react, typescript, vite
- Domain
- build-system, devtools, frontend
Research direction
Reproduce the setup described in the issue: install react-router-devtools, add reactRouterDevTools() to the Vite config, and render EmbeddedDevTools alongside the TanStack Form plugin in TanStackDevtools. Inspect the Vite plugin and devtools integration at the point where __vite__injectQuery is declared. Done means both devtools work together without the duplicate-identifier error.
Written by the indexing model from the issue text.
Description
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
<TanStackDevtools
plugins={[
{
name: "React Router Devtools",
render: <EmbeddedDevTools />,
defaultOpen: true,
},
{
name: "TanStack Form",
render: <FormDevtoolsPanel />,
},
]}
eventBusConfig={{
connectToServerBus: true,
}}
/>
But I got that error. When I remove <EmbeddedDevTools /> in TanStackDevtools code. My app work fine.
- Dominant language
- TypeScript
- Stars
- 975
- Forks
- 55
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from code-forge-io/react-router-devtools
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
code-forge-io/react-router-devtools#243 · 1 comment ·
-
Add timestampOpen
Difficulty 3/5 1-2 days Newbie friendliness 35/100
code-forge-io/react-router-devtools#242 · 2 comments ·
All issues in code-forge-io/react-router-devtools
Similar issues
-
bug(core): JsonOutputKeyToolsParser ignores returnId: truePossibly taken A pull request linked to this issue is open or already merged. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
langchain-ai/langchainjs#12239 ·
Maintainers usually reply within 1 day
-
Board view: the Monitoring column is always empty because compact issue rows drop displayStatusOpen
Difficulty 1/5 Under an hour Newbie friendliness 88/100
paperclipai/paperclip#21837 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
code-yeongyu/senpi#6813 ·
Maintainers usually reply within 1 day
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 93/100
lingdojo/kana-dojo#34169 · 1 comment · 5 reactions ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100