Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DevTools Bug]: Components + Profile tabs not showing up in Chrome 99 #24094

Closed
scott-m-sarsfield opened this issue Mar 14, 2022 · 19 comments
Closed
Labels
Component: Developer Tools Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug Type: Bug

Comments

@scott-m-sarsfield
Copy link

Website or app

https://codesandbox.io/s/new

Repro steps

  1. Open up Chrome inspector
  2. Expect Components + Profile tabs to appear

Computer:
2019 MacBook Pro (Intel)

Browser:
Google Chrome
Version 99.0.4844.51 (Official Build) (x86_64)

DevTools:
4.24.0 (3/10/2022)

How often does this bug happen?

Every time

DevTools package (automated)

No response

DevTools version (automated)

No response

Error message (automated)

No response

Error call stack (automated)

No response

Error component stack (automated)

No response

GitHub query string (automated)

No response

@scott-m-sarsfield scott-m-sarsfield added Component: Developer Tools Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug Type: Bug labels Mar 14, 2022
@scott-m-sarsfield
Copy link
Author

scott-m-sarsfield commented Mar 14, 2022

Seems like I'm not the only one: https://www.reddit.com/r/reactjs/comments/ta820t/react_devtools_extension_not_working_on_my/
(couldn't find existing issue though)

@scott-m-sarsfield
Copy link
Author

Admittedly, it could be on chrome; the error + warning icons are black for some reason.
Screen Shot 2022-03-14 at 10 51 38 AM

However, the tabs are showing up on https://reactjs.org/, so I'm not sure why it's not showing up on every other site I go on.

@icruzr93
Copy link

I'm facing exactly the same problem but with all my extensions not only with this one.

@istateside
Copy link

I'm also having this issue, and the same issue with the Redux Dev tools. Doesn't happen on every React site.

I'm on an M1 Macbook, and assumed that the issue was specific to ARM64 Chrome since some other coworkers had the same issue, but only those with an M1. But I see other people have the same issue on x86, so who knows.

@lunaruan
Copy link
Contributor

lunaruan commented Mar 14, 2022

Hey! Thanks for reporting. This sounds less like a DevTools issue and more like a Chrome issue, especially since all extensions seem to be experiencing this. You can report issues with Chrome here. Closing this issue!

@scott-m-sarsfield
Copy link
Author

scott-m-sarsfield commented Mar 14, 2022

saga continues:
https://bugs.chromium.org/p/chromium/issues/detail?id=1306249

...which feels silly, because all of my extensions seem to load on that page.

@scott-m-sarsfield
Copy link
Author

scott-m-sarsfield commented Mar 15, 2022

Ok. Somehow I got them working again (although I don't have the most reliable procedure for reproducing).

I turned off two flags in the devtool experiments section:

  • Sync DevTools settings with Chrome Sync and
  • Enable Reporting API panel in the Application panel.

I also thought that doing a refresh of devtools could have worked, but it didn't appear to be consistent. I think turning off the first flag is probably the only thing, but I'm not 100%.

@micate
Copy link

micate commented Mar 21, 2022

Ok. Somehow I got them working again (although I don't have the most reliable procedure for reproducing).

I turned off two flags in the devtool experiments section:

  • Sync DevTools settings with Chrome Sync and
  • Enable Reporting API panel in the Application panel.

I also thought that doing a refresh of devtools could have worked, but it didn't appear to be consistent. I think turning off the first flag is probably the only thing, but I'm not 100%.

+1, and turned off these two flags did not worked for me.

@Hannah-goodridge
Copy link

saga continues: https://bugs.chromium.org/p/chromium/issues/detail?id=1306249

...which feels silly, because all of my extensions seem to load on that page.

For those following this ticket, it has has been marked as duplicate and merged into this one:
https://bugs.chromium.org/p/chromium/issues/detail?id=1305475#c1

@istateside
Copy link

istateside commented Mar 30, 2022

There still doesn't seem to be any movement on that Chrome bug, and I'm not able to provide a reproducible example to push it forward any more, but if folks are looking for a workaround:

  • Open a new tab
  • Open the Chrome devtools for your new tab
  • navigate to whatever your React site's URL is in the new tab
  • tada, the Components / Profile tabs should show up, and will stay there if you refresh the page.

If you try loading the devtools after you've already navigated to the React site, the tabs won't show up. I'm not familiar enough with writing extensions to know how this all works, but I was able to determine that, in the failing case, the listener in background.js for chrome.runtime.onConnect never gets hit, and therefore the content script never gets installed.

I'm not sure what triggers that connection, but it doesn't happen unless you load the devtools before navigating to the React site.

It sounds like we've determined that it's an issue with Chrome, and not React, but hopefully this comment helps unblock someone else until the Chrome bug can be fixed.

EDIT 04/26/22: Sounds like the fix is planned to go into Chrome v102

@anushasingh02
Copy link

Very late to this but was still getting the bug. Had to toggle a random flag and refresh devtools which seems to be a fix.

@supriya-ck12
Copy link

Very late to this but was still getting the bug. Had to toggle a random flag and refresh devtools which seems to be a fix.

Can you share which flag it was that had to be toggled?

@artemu78
Copy link

Very late to this but was still getting the bug. Had to toggle a random flag and refresh devtools which seems to be a fix.

Can you share which flag it was that had to be toggled?

there is a button "Restore defaults and reload", it helped me

@VaibhavKambar7
Copy link

VaibhavKambar7 commented Dec 29, 2023

image

click on the "Restore defaults and reload" button , it worked for me.

@wonhotoss
Copy link

In my case, devtools - application - service workers - update on refresh was the reason. When it checked, react panels are not shown.

@alim-ansari
Copy link

In my case, devtools - application - service workers - update on refresh was the reason. When it checked, react panels are not shown.

Yeah, same in my case. Fixed it.

@venku
Copy link

venku commented Jan 24, 2024

In my case, devtools - application - service workers - update on refresh was the reason. When it checked, react panels are not shown.

Same with me. Fixed after unchecking

@AshfaqueSami2
Copy link

import react from '@vitejs/plugin-react'; // Import the Vite React plugin
import { defineConfig } from 'vite';

export default defineConfig({
plugins: [react()], // Use the Vite React plugin
build: {
sourcemap: true, // Enable source maps generation
},
});

@@***Use this in your vite.config.js everything wil work

@devVibe11
Copy link

devVibe11 commented Feb 28, 2024

My issue Solved:
For anyone who's having issues with the console tabs not appearing: like (Components)

Press F12 to open your console, click the gear/cog icon to open the console settings, then in the bottom right there's a button that says "Restore defaults and reload". This should bring the console tabs back if they're missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Developer Tools Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug Type: Bug
Projects
None yet
Development

No branches or pull requests