You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
React devtools not working as described in docs #915
I'm trying to use react-devtools with atom-shell as described here in the docs, but the React tab doesn't show up in the Developer Tools panel as expected.
I put the line require("remote").require("browser-window").addDevToolsExtension("../react-devtools"); in the html file being loaded into the browser window which gives no console output, but does give a file not found error if I switch to an incorrect path.
I've also tried entering the line manually from the Developer Tools console, in which case it returns the string "React Developer Tools" but doesn't appear to do anything else.
Reacted by Marian Boda, Gabi Maeztu, Hari Juturu, Valery, Alessandro Artoni, Piti Ongmongkolkul, Dag M, Tom Moor, PaulBGD, Jonathan Frederic and 8 more
I'm seeing similar results (as noted in #250, though this issue is more specific). Unloading the extension 'works' (i.e. returns true) but nothing shows up when loading.
Read up, there were breaking changes in React that have not been resolved. Also waiting for this, running into some nasty React bugs and I can't find out what listeners are on my modules!
I spent some time poking around with this today, and after much effort, figured out how to manually add the content_script from the react devtools to my app. this permitted the react devtools to detect React in my app, but trying to connect to it failed because chrome.runtime.getURL and chrome.runtime.connect are not implemented. (Just for completeness' sake, I note that react devtools also use chrome.runtime.onConnect and chrome.tabs.executeScript.)
I see this is fixed in the latest Electron release. Has anyone else tested and got this working? I can get React DevTools loaded in but I just get "Connecting to React..." 😞
Activity
lllama commentedon Dec 12, 2014
I'm seeing similar results (as noted in #250, though this issue is more specific). Unloading the extension 'works' (i.e. returns true) but nothing shows up when loading.
jgarcia241 commentedon Dec 31, 2014
Same here. Is there any known workaround we can use while this is closed?
deepak1556 commentedon Jan 9, 2015
React v0.12 has deprecated React.__internals https://github.com/facebook/react/releases/tag/v0.12.0 . So loading of the extension's devtools_page by atom-shell will fail at this condition

https://github.com/facebook/react-devtools/blob/master/injected/ReactHost.js#L42which is initialised by a globalhook contentscript https://github.com/facebook/react-devtools/blob/master/injected/GlobalHook.js . I tried adding the contentscript to main.html https://github.com/deepak1556/react-devtools/blob/atom_shell_test/main.html#L4 and extension loaded successfully. Except the treeview wasnt constructed..zcbenz commentedon Jan 9, 2015
@deepak1556 Thanks for looking into this, I think we have to support the
content_scriptsto load latest react devtools extension.dlmanning commentedon Apr 2, 2015
Is this on the roadmap?
steelbrain commentedon Jul 3, 2015
Bump.
LongLiveCHIEF commentedon Jul 23, 2015
It seems all the issues regarding this issue reference each other and then close. It's the infinite issue of doom.
bruce commentedon Jul 27, 2015
Also, this is a wider issue; it's also a problem with the Ember Inspector, as noted in (merged) #1644.
mrzmyr commentedon Aug 29, 2015
Anything happend on this ?
faurehu commentedon Aug 30, 2015
I'm calling the same line indicated in the docs:
require("remote").require("browser-window").addDevToolsExtension("../react-devtools");It throws the following error:
Error: ENOENT: no such file or directory, open '../react-devtools/manifest.json'This seems to be because it keeps looking for a
manifest.jsonfile. The devtools doesn't need to provide this because it's not really a CRX package.I'm on Electron v0.31.1, React v0.13.3 and react-devtool 0.13.1
swashcap commentedon Aug 31, 2015
👍
swashcap commentedon Aug 31, 2015
If you install React Devtools in
./devtools/react-devtoolsand then run:…it finds the
manifest.jsonfile. The docs should be updated. However, the dev tools don’t appear to load.😔
dlmanning commentedon Aug 31, 2015
Anyone checked to see if React's beta dev tools work? I'll test them tomorrow if no one else gets a chance.
25 remaining items
xhocquet commentedon Mar 29, 2016
Read up, there were breaking changes in React that have not been resolved. Also waiting for this, running into some nasty React bugs and I can't find out what listeners are on my modules!
inklesspen commentedon May 12, 2016
I spent some time poking around with this today, and after much effort, figured out how to manually add the content_script from the react devtools to my app. this permitted the react devtools to detect React in my app, but trying to connect to it failed because
chrome.runtime.getURLandchrome.runtime.connectare not implemented. (Just for completeness' sake, I note that react devtools also usechrome.runtime.onConnectandchrome.tabs.executeScript.)frankhale commentedon May 25, 2016
Not sure if this is widely known or not but there seems to be a fork of the React Devtools that does work with Electron.
https://github.com/firejune/electron-react-devtools
https://www.npmjs.com/package/electron-react-devtools
davej commentedon May 25, 2016
@frankhale Awesome, were you able to get it working? It didn't work for me.
frankhale commentedon May 25, 2016
I haven't tried it yet but definitely will either today or in the next few days.
albertoclarit commentedon May 25, 2016
Not working for me...
philostler commentedon May 25, 2016
Gave it a try earlier. Didn't work for me neither
davej commentedon May 25, 2016
@albertoclarit @philostler Created issue here: firejune/electron-react-devtools#1
philostler commentedon Jun 4, 2016
I see this is fixed in the latest Electron release. Has anyone else tested and got this working? I can get React DevTools loaded in but I just get "Connecting to React..." 😞
inklesspen commentedon Jun 4, 2016
@philostler When I use https://github.com/chentsulin/electron-react-boilerplate (and update the package.json to use electron 1.2.1), I can get the React Devtools working by following the instructions.
philostler commentedon Jun 4, 2016
@inklesspen Thanks, confirmed also, but still not working in my own app. NP must be another issue
albertoclarit commentedon Jun 5, 2016
Electron 1.2.1 React DevTools is now working on my App...
bachmay commentedon Jun 10, 2016
AngularJS Batarang is still not working
mnquintana commentedon Jun 10, 2016
@bachmay Please open a new issue – this issue is only for the React dev tools not working. Thanks!