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

Bug: Cannot read property 'isCollapsed' of undefined/Some Components Missing in DevTools/Blank tab #19332

Closed
AveryTheDev opened this issue Jul 13, 2020 · 21 comments

Comments

@AveryTheDev
Copy link

I cannot view all of my components in the Components tab. Sometimes none. It has been occurring all morning and I do not know how to rectify this.

I cannot search for the components by name either. It is not there.

When I was attempting to highlight a component to see its props value, I got the below message after clicking on it to see if that would help as nothing was showing.

image

React version:

Steps To Reproduce

  1. Start React App.
  2. Open Dev Tools.
  3. Go on Components tab.
  4. Click on Component that is not displayed in dev tools Component tab.
  5. Error message from above.

Same steps for a blank Component tab. Unfortunately, restarting the app does not seem to rectify the issue either. Seems to be an error with the extension itself but I thought I'd try here first.

@AveryTheDev AveryTheDev added the Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug label Jul 13, 2020
@bvaughn
Copy link
Contributor

bvaughn commented Jul 13, 2020

Can you share a repro (e.g. the project you're trying to use that causes React DevTools to error)? I haven't seen this behavior before, or heard reports of it.

@bvaughn bvaughn added Component: Developer Tools Resolution: Needs More Information and removed Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug labels Jul 13, 2020
@AveryTheDev
Copy link
Author

I can't share the repo as its my work repo. There was an error like this in the past but it was archived because the poster did not provide steps to reproduce

@AveryTheDev
Copy link
Author

I'll see if this happens with another react project in case its a versioning thing with my dev tools

@bvaughn
Copy link
Contributor

bvaughn commented Jul 13, 2020

Hm. Yeah it's hard for us to do much without a repro. Could you try creating a reduced case by removing things from your local app until you've gotten it as small as you can (while still seeing the error) and then sharing that small repro with us via Code Sandbox or something? The cause is often just a small thing.

May also be nice to find out the version of DevTools you've got installed and which browser/version you're using.

@AveryTheDev
Copy link
Author

Unfortunately, it does seem unique to my work repo so I am not sure what has happened. I'll check to see if I have installed any new dependencies. That screenshot is the extent of my error message

@AveryTheDev
Copy link
Author

Will do @bvaughn I am being pulled away for a moment but I will do my best to give you something more to work with within the next couple of hours

@bvaughn
Copy link
Contributor

bvaughn commented Jul 13, 2020

Thanks so much!

@AveryTheDev
Copy link
Author

I am still investigating but I am providing the following information in the meantime, I hope this helps

Browser: Chrome

Browser version: Version 83.0.4103.116 (Official Build) (64-bit)

React Dev Tools Version
4.8.1 (7/10/2020)

@bvaughn
Copy link
Contributor

bvaughn commented Jul 13, 2020

Gotcha. Nothing too helpful there unfortunately. Same versions as me.

@gaearon
Copy link
Collaborator

gaearon commented Jul 13, 2020

@abrown945 For what it's worth, if your work repo is a publicly available product, and the issue reproduces in production, just seeing that page would be helpful too. Not necessarily the source code.

@AveryTheDev
Copy link
Author

@gaearon I'll check to see if it happens in production. Its not public unfortunately but that will help narrow down the issue

I'll also check to see if this happens in other branches

@AveryTheDev
Copy link
Author

AveryTheDev commented Jul 13, 2020

@bvaughn and @gaearon I cannot reproduce the issue now and it seems to have resolved itself. I couldn't test earlier due to server maintenance of the site.

Thank you for helping me even with the limited perspective I could give. I appreciate your responsiveness and swiftness to aid me regardless of the difficulty on you two! Have a great day!

@unzico
Copy link

unzico commented Jul 14, 2020

Are you using Suspense? I'm encountering a problem, where all remaining components below Suspense don't show up in the Flamegraph. However, I'm not sure if this is related to Suspense.

@bvaughn
Copy link
Contributor

bvaughn commented Jul 14, 2020

@unzico FWIW there is a known issue or two with Suspense in the latest release that I'm working to fix. We'll publish an update shortly. Sorry!

@bvaughn
Copy link
Contributor

bvaughn commented Jul 15, 2020

I suspect that #19368 may fix the issues reported here as well.

@AveryTheDev
Copy link
Author

@bvaughn and @unzico we are using Suspense! So I guess that is the root of the issue

@AveryTheDev
Copy link
Author

@bvaughn forgive me if I am misunderstanding but it looks like you linked to a pull request that will resolve the issue. Am I to read this as, when this PR is approved the devtools error will be resolved with an update to my React app?

@bvaughn
Copy link
Contributor

bvaughn commented Jul 15, 2020

I think the next DevTools release (sometime today) should resolve your issue without any updates or changes to your app.

@bvaughn
Copy link
Contributor

bvaughn commented Jul 15, 2020

Should be fixed by #19373

New release will go out shortly

@bvaughn bvaughn closed this as completed Jul 15, 2020
@bvaughn
Copy link
Contributor

bvaughn commented Jul 15, 2020

Version 4.8.2 has just been published to NPM and submitted to Chrome/Edge/Firefox stores with a fix for this issue.

Browsers sometimes take a few hours to approve a new extension version, but once the new version goes live this should be resolved. Sorry for the inconvenience.

@AveryTheDev
Copy link
Author

AveryTheDev commented Jul 15, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants