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]: React devtools stuck at Loading React Element Tree, troubleshooting instructions are Chrome-specific #26911

Closed
ialexryan opened this issue Jun 7, 2023 · 7 comments · Fixed by #27179
Assignees
Labels
Component: Developer Tools Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug Type: Bug

Comments

@ialexryan
Copy link

Website or app

corporate project (private)

Repro steps

Load page, then open React DevTools. Reloading or closing and reopening the tab does not fix the problem. Quitting and reopening Firefox sometimes fixes the problem.
image

The linked troubleshooting instructions provide no guidance for users of browsers other than Chrome; I am running Firefox v114 (on macOS 13.2.1).

How often does this bug happen?

Often

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

@ialexryan ialexryan added Component: Developer Tools Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug Type: Bug labels Jun 7, 2023
@hoxyq
Copy link
Contributor

hoxyq commented Jun 9, 2023

Hey @ialexryan, thanks for reporting this.

Can you please check if there are any errors in the extension's console when you are trying to use it? In Firefox, this can be done via debugging add-ons:
Screenshot 2023-06-09 at 14 03 39

Then click 'Inspect' for DevTools extension and you should be able to check the console.

@silvestreh
Copy link

I'm having the same issue. This is what comes up in the console: TypeError: can't access property "executeScript", chrome.scripting is undefined

@ialexryan
Copy link
Author

I actually hit this for the first time in a while just now. The error in the console was TimeoutError: Timed out while inspecting element 43.
image

@austinbutler
Copy link

Same issue but nothing in the console.

@sandinmyjoints
Copy link

Also same problem. Nothing in console.

@hoxyq
Copy link
Contributor

hoxyq commented Aug 2, 2023

Hey, I've opened a PR with changes that should fix it - #27179.

Looks like extension doesn't work when mobile dev mode is enabled in Firefox.

Can anyone try downloading and installing a custom build from here to check if it fixes the problem for you?

devtools.tgz should contain firefox-extension.zip archive, which then can be manually installed in Firefox. Please also consider removing original React DevTools extension from Firefox before that.

@sandinmyjoints
Copy link

@hoxyq That fixed it for me! Thanks!

hoxyq added a commit that referenced this issue Aug 29, 2023
…n user agent (#27179)

Fixes #26911,
#26860.

Currently, we are parsing user agent string to determine which browser
is running the extension. This doesn't work well with custom user
agents, and sometimes when user turns on mobile dev mode in Firefox, we
stop resolving that this is a Firefox browser, extension starts to use
Chrome API's and fails to inject.

Changes:
Since we are building different extensions for all supported browsers
(Chrome, Firefox, Edge), we predefine env variables for browser
resolution, which are populated in a build step.
EdisonVan pushed a commit to EdisonVan/react that referenced this issue Apr 15, 2024
…n user agent (facebook#27179)

Fixes facebook#26911,
facebook#26860.

Currently, we are parsing user agent string to determine which browser
is running the extension. This doesn't work well with custom user
agents, and sometimes when user turns on mobile dev mode in Firefox, we
stop resolving that this is a Firefox browser, extension starts to use
Chrome API's and fails to inject.

Changes:
Since we are building different extensions for all supported browsers
(Chrome, Firefox, Edge), we predefine env variables for browser
resolution, which are populated in a build step.
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

Successfully merging a pull request may close this issue.

5 participants