Skip to content

Devtools not showing at all #239

Open

Description

@sneridagh

Hi,
I have a quite uncommon setup in my app, where my default layout and route is not in the main app package, but spread across packages in a pnpm monorepo. I guess that somehow the plugin detection of the entrypoint is messed up, and I can't see the devtools anywhere. The plugin is definitelly doing something, since the additional metadata is in the DOM.

Is there a way to manually inject the tools and not to rely on the vite plugin?

Using latest versions of everything.

Activity

  1. indramal commented on Jan 5, 2026

    @indramal

    Same issue

  2. AlemTuzlak commented on Jan 13, 2026

    @AlemTuzlak
    Contributor

    @sneridagh yes there is, you can install @tanstack/react-devtools and add the react-router devtools as a plugin into there:

    import { EmbeddedDevTools } from "react-router-devtools";
    import { TanStackDevtools } from "@tanstack/react-devtools";
    
    export default Root(){
      return <body>
       <TanStackDevtools plugins={[
            {
              name: 'React Router Devtools',
              render: <EmbeddedDevTools />,
              defaultOpen: true
            }  
          ]} 
        eventBusConfig={{ 
    	  connectToServerBus: true,
    	}} />
    
    </body>
    }
  3. indramal commented on Jan 13, 2026

    @indramal

    @sneridagh yes there is, you can install @tanstack/react-devtools and add the react-router devtools as a plugin into there:

    import { EmbeddedDevTools } from "react-router-devtools";
    import { TanStackDevtools } from "@tanstack/react-devtools";

    export default Root(){
    return
    <TanStackDevtools plugins={[
    {
    name: 'React Router Devtools',
    render: ,
    defaultOpen: true
    }
    ]}
    eventBusConfig={{
    connectToServerBus: true,
    }} />

    }

    Is this support Declarative Mode of react router?

  4. indramal commented on Jan 14, 2026

    @indramal

    @sneridagh yes there is, you can install @tanstack/react-devtools and add the react-router devtools as a plugin into there:

    import { EmbeddedDevTools } from "react-router-devtools";
    import { TanStackDevtools } from "@tanstack/react-devtools";

    export default Root(){
    return
    <TanStackDevtools plugins={[
    {
    name: 'React Router Devtools',
    render: ,
    defaultOpen: true
    }
    ]}
    eventBusConfig={{
    connectToServerBus: true,
    }} />

    }

    I got __vite__injectQuery error message when add this dev tool. Why is that and how to solve it?

  5. martialanouman commented on Feb 2, 2026

    @martialanouman

    Hi, i got the same issue with RR7 framework mode with Turborepo.

    import { reactRouter } from '@react-router/dev/vite'
    import tailwindcss from '@tailwindcss/vite'
    import { playwright } from '@vitest/browser-playwright'
    import { reactRouterDevTools } from 'react-router-devtools'
    import tsconfigPaths from 'vite-tsconfig-paths'
    import { defineConfig } from 'vitest/config'
    
    export default defineConfig({
    	plugins: [
    		reactRouterDevTools(),
    		tailwindcss(),
    		!process.env.VITEST && reactRouter(),
    		tsconfigPaths(),
    	],
    	test: {
    		globals: true,
    		setupFiles: ['./test-setup/setup.ts'],
    		globalSetup: ['./test-setup/global-setup.ts'],
    		coverage: {
    			provider: 'istanbul',
    			include: ['app/**'],
    			clean: true,
    		},
    		projects: [
    			{
    				extends: true,
    				test: {
    					name: 'browser',
    					include: ['app/**/*.test.(tsx|jsx)'],
    					browser: {
    						enabled: true,
    						provider: playwright(),
    						instances: [{ browser: 'chromium', headless: true }],
    					},
    				},
    			},
    			{
    				extends: true,
    				test: {
    					name: 'node',
    					include: ['app/**/*.test.ts'],
    				},
    			},
    		],
    	},
    })
  6. fabricioffa commented on Feb 17, 2026

    @fabricioffa

    The issue ended up being a missing Links component.

    I was using the React 19 <Link>, but since the Links component wasn’t included in the root file, the dev tools couldn’t inject the related CSS. Because of that, it looked like the component wasn’t rendering at all.

    I just added the React Router Links component alongside my other links in the root file and everything started working.

    It would be nice if this worked without needing to explicitly include Links, though.

  7. irsooti commented on Feb 17, 2026

    @irsooti

    it doesn't work in framework mode.

    If I try to add the plugin from the react-router developer tool I get Devtools file not found

    In the server console instead, I get

    [@tanstack/devtools-vite] Could not add plugin. Devtools file not found.
    [@tanstack/devtools-vite] Adding @tanstack/react-query-devtools to devtools...
    
  8. irsooti commented on Feb 18, 2026

    @irsooti

    Quick note.
    I managed to get the React Router and React Query devtools working by using the TanStack Devtools.
    Right now I see two devtools icons (the RR7 one and the TanStack one):

    • when I click the TanStack icon I can see both plugins: React Query and React Router;
    • when I click the RR devtools icon I only see the React Router plugin.

    What I’d like to do is use only the TanStack devtools, but if I remove the devtools from the Vite configuration I no longer see some React Router information (like the timeline).

  9. sneridagh commented on Apr 10, 2026

    @sneridagh
    Author

    @AlemTuzlak Trying to setup the devtool again, this time with vite 8 and latest RR7.

    @sneridagh yes there is, you can install @tanstack/react-devtools and add the react-router devtools as a plugin into there:

    import { EmbeddedDevTools } from "react-router-devtools";
    import { TanStackDevtools } from "@tanstack/react-devtools";

    export default Root(){
    return
    <TanStackDevtools plugins={[
    {
    name: 'React Router Devtools',
    render: ,
    defaultOpen: true
    }
    ]}
    eventBusConfig={{
    connectToServerBus: true,
    }} />

    }

    This worked wonderfully, thanks!
    However, on hover, the component I am on is always highlighted. Is this normal? Also the shift+click does not work. :(
    Any idea what could be happening?

    Screen.Recording.2026-04-10.at.19.46.40.mov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions