Skip to content

Identifier '__vite__injectQuery' has already been declared error #247

@indramal

Description

@indramal

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions