-
Notifications
You must be signed in to change notification settings - Fork 47.2k
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] Components tab goes blank with React 16.8.0 #20261
Comments
Hi @brettgoulder , Are you using Google Chrome for Ubuntu with the version I specified? Best regards. |
@abelardolg yes, I just checked and I still can't confirm it on 18.04. Here's a screenshot: Here's the URL for the test app: https://mzfm7.csb.app/ and code: https://codesandbox.io/s/lucid-franklin-mzfm7 |
I'm also experiencing this issue. My app is running on localhost without errors, but the Components tab is blank. Is there a way to view the error logs of the React Dev Tools to see if RDT is failing somehow even if my app isn't complaining? Versions
|
also been experiencing this issue for a few days now. It's gotten to the point where there's a bug I'm struggling to figure out without the devtools, so I'm resorting to thsi |
Yes:
undock-devtools-Kapture.2021-03-08.at.09.52.02.mp4 |
User with firefox here. I get this too. Following @bvaughn’s instructions, I just get When I instead go through |
Trying to open devtools in the test app results in an error (sometimes, it’s really flaky). Clicking
|
In my experience this generally means that the extension has been invalidated (e.g. b'c it was just updated or something edge casey) and reloading the page will fix the problem.
Does this reproduce for you? If so, are you using Chrome Canary or some other pre-stable-release version? I've only seen blank behavior from pre-release Chromes. |
Firefox stable, and reproducible (Most of the time: Very rarely, the tree view actually shows up) |
Is this still an issue? |
I have React 16.14.0 and devtools 4.13.5 (0ae5290) and this is an issue. |
@ashmeet-kandhari Please feel free to take a look! Help would be welcome. |
Sure
Sure @bvaughn, will have a look |
Earlier I was able to face the same issue.
|
I was able to reproduce the issue when I was using react Can somebody guide me what triggers the population of that variable? |
Hi @flying-sheep , |
@ashmeet-kandhari Are you able to reliably reproduce this? If so, can you share a repro with me (either a GitHub project or a Code Sandbox built with the version of React you're talking about)? |
@bvaughn Just run
My System Config |
Thanks @ashmeet-kandhari! I can reproduce the blank component tab behavior with the project you sent, but have not had time to dig into why yet. |
Hi @bvaughn, I did dig deep into this and these are some findings I have
the if clause fails as This is the main reason for the field |
Oh right. It's not that DevTools and React 16.8.0 are incompatible. It's that Fast Refresh was breaking the DevTools hook at one point. I fixed several DevTools bugs caused by Fast Refresh (#20129 as well as #21523 and #21536) and we made new releases of Fast Refresh. Unfortunately some past releases remain broken. I guess the best path forward here is to just avoid using those releases. (It's probably a good idea to use the latest bugfix release of a given minor anyway, e.g. 16.8.6 rather than 16.8.0) |
So Maybe this issue can be closed in that case? |
As said, we could both originally reproduce that with react 16.14, not 16.8. When I purge my npm-shrinkwrap and reinstall everything, the issue is also gone, but the point of that file is to have a reproducible environment, so if the recommendation is to nuke it every time an issue appears, what purpose does it serve? I’d rather know what dependency causes this and selectively update that one instead of nuking a (otherwise) known working environment. |
@ashmeet-kandhari Yes, perhaps it could be closed. If the cause if this a known-to-be-broken version of Fast Refresh (that happens to be version locked with [email protected]) then I guess there isn't much value in keeping this issue open. @flying-sheep I am not convinced you are talking about the same error/issue, based on your messages above. |
I'm going to close this as something we won't/can't fix, since the problem is caused by a bad release of Fast Refresh. The solution: upgrade. |
Hi @bvaughn, could you please elaborate on what we need to update to fix this issue? Should we update via npm or something like that? Thank you! |
Updating React and ReactDOM from 16.8 to 17 fixed it for me. |
React version: 16.8.0
Steps To Reproduce
Install react 16.8.0
Link to code example:
The current behavior
Tab "Component" is blank
The expected behavior
Tab "Component" should show React components
FYI: I installed Material UI library.
Chrome: Versión 86.0.4240.183 (Build oficial) (64 bits) Ubuntu 18.04.
Tested today.
Versión
4.10.0 (11/12/2020)
Actualizado
13 de noviembre de 2020
The text was updated successfully, but these errors were encountered: