Open
Description
Summary
There's a mix of several different issues that result in the Components tree not being able to load, which happens inconsistently.
In some cases, after trying out a different build of DevTools with a potential fix, the issue seems to fully resolve itself, even after going back to using the "bad" build where the issue originally occurred. However, that doesn't mean the issue is fixed by that build, since other reports keep occurring.
This issue is a master task tracking all of the issues we've seen so far from user reports:
Cannot add node "x" because a node with that id is already in the store
, reported in [DevTools Bug] Cannot add node "476" because a node with that id is already in the Store. #21636 before we shipped v4.20.0.No location name for view with id <id_of_components _tab>
, reported in the console inspecting DevTools itself.
Invalid renderer id "1"
, logged in the console of the main page
Unable to find React on the page.
, which suggests that the extension failed to load entirely as that's just placeholder text from before the extension panels are created with Chrome.
Uncaught error: Extension Context Invalidated
, reported in [DevTools Bug]: Blank tools localhost only #22577.
https://user-images.githubusercontent.com/7581546/137986963-f55b9fc2-745d-4aeb-8b8b-49645197c163.png- Navigating to a new tab doesn't load Components tree (even after v4.21.0 w duplicate extension logic reverted). See Navigating to a new tab with DevTools open does not load Components tree #22663 for details
- No error being shown at all, as also reported in [DevTools Bug]: Blank tools localhost only #22577.
Root Cause and Fixes
- The suspected root cause is the changes shipped in v4.20.0 for detecting duplicate installations of DevTools.
- A fix was attempted with v.4.20.2, based on reports from users in DevTools can't load Components tree in Components Tab #22636 confirming that our changes in Dev Tools: Relax constraint on passing extensionId for backend init #22597 fixed the issue
- The logic is now being fully reverted in Revert logic for checking for duplicate installations of DevTools #22638