65

Anyone know why the ReactJS Chrome browser extension isn't showing for mein dev tools? It's installed, at one point it was working.

I'm using chrome Version 39.0.2171.65 (64-bit) on Mac OS X v 10.7.5

I read the reviews on this extension, some people said need to expose React as a global. I'm using React NPM with: var React = require('react');

1

15 Answers 15

136

I was having this issue just now and to solve it I had to open dev tools -> click the gear icon on the top right of the dev tools window then in the far right column at the very bottom is a button that should say "restore defaults and reload" click that. I was not able to figure out the exact reason it was not appearing but it at least gets react debugging working again.

Sign up to request clarification or add additional context in comments.

5 Comments

This is the only thing that worked for me after trying everything else. Thanks.
When all fails, 5 years after the question was posted, there comes a stack-overflow hero. I'd give 5 upvotes if possible.
Has anyone gone down the rabbit hole to identify that single setting that messed up the extension?
Not a clue as for the cause - this happened to me on a mostly fresh Vivaldi install.
tried other things - but this worked for me....thank you!!!!
90

In chrome://extensions/ select Allow access to file URLs for the React Developer Tools extension, using v0.13.1 of React. I didn't need to add anything to my source code.

3 Comments

Check for ⚛️ Components tab and ⚛️ Profiler tab in newer version. Facebook have updated React DevTools to have Components and Profiler Tabs it serves same purpose as React tab in older versions.
@Shailesh you should write this as an answer.
To reach the Allow access to file URLs selector menu, click on the details button in the bottom left corner of your extension card.
51

Just happened to me on Chrome 100. Reloading the page, reopening DevTools panel, toggling the extension on/off, restarting the browser and closing other app windows didn't help.

What fixed it for me was: CMD+SHIFT+P and selecting "Reload DevTools" from the command panel. For non-Macs it will probably be CTRL+SHIFT+P.

4 Comments

helped me in chrome Version 103.0 as well. Thanks!
worked on chrome version Version 114.0.5735.248 . thanks for sharing!
This is the only solution that worked for our team. The above solutions, although got more upvotes, but did not work.
Simply closing and reopening dev tools did it for me
14

React extension shows up only when you have react loaded into the browser in global scope. Like @nlgndg mentions it should be present as window.React

3 Comments

Copy Paste from other answer: The main requirement is that window.React is set. If you're using a module system (as I am using Browserify): typeof window !== "undefined" && (window.React = React) This should usually be done in your main source file.
I have given him due credit for the answer, just thought it's better served as an answer for everyone to see than a comment.
Thanks , just typed window.React = {} in the console and the React tab became visible in the chrome dev tools besides the audits tab .
6

Restarting Chrome after installation seems to help, apart from the other answers.

I couldn't find any info on that step in the Chrome Web Store or when clicking on the plugin, so just leaving it here.

Comments

4

TWO SIMPLE STEPS

1. in devTools (inspect of page) press ALT + R

it will fix the problem if did not

2. Allow access to file URLs to React Developer Tools

STEPS :

a. Extensions

b. React Developer Tools (details btn)

c. Check Allow access to file URLs

https://github.com/facebook/react/blob/main/packages/react-devtools/README.md#the-react-tab-shows-no-components

Comments

2

I was facing the same problem, I tried uninstalling the extension, activating and deactivating the URL file issue and it didn't work. What worked for me was: Go to Applications -> Service Workers and uncheck all checkboxes

1 Comment

As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.
1

I was using http://localhost:3000, I went to extensions and reset the settings like toggle them and it started showing components and profiler tabs for me.. I dont know thats a solution, but it worked for me.. PS Also updated chrome version too.

Comments

1

As others have suggested, I tried re-installing the extension, the solution with CMD+SHIFT+P, clicking gear icon then "restore default and load", still it did not work.

I don't know if this is what fixed it but I changed the dock side from right to bottom and reloaded the page and I could see the "⚛️ Components" tab after that.

Comments

0

In case none of the answers helped, try to open the extension's settings and check the option Site access. The value should be on all sites. In case of on click or on specific sites the tabs won't showing up

Comments

0

Recently, ReactJS stopped working in my browser. The problem was that one of my extensions got updated and was interfering with the other one. If you have this problem, try disabling all extensions except the one you need.

Comments

0

Also had this problem, for me it was because I had turned on in the Dev tools settings for service workers 'update on reload' option

Comments

0

go to settings -> preference -> in the bottom "Restore defaults and restart". its works for me. #react

Comments

0

For me I just had to relaunch to update Chrome. Click on the 3 dots on the top right of your browser and you'll see a button for this action. It this doesn't work try to manully update to the latest stable version.

Comments

-2

i had the same problem . and it was solved just like @Siddharth Sharma said . open the console and create a react object just like bellow .

window.react = {};

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.