Skip to content

React devtools not working as described in docs #915

Closed

Description

@johnthedebs

Summary

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.

Versions

atom-shell 0.19.5
react: 0.12
react-devtools: 0.12

Activity

  1. lllama commented on Dec 12, 2014

    @lllama

    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.

  2. jgarcia241 commented on Dec 31, 2014

    @jgarcia241

    Same here. Is there any known workaround we can use while this is closed?

  3. deepak1556 commented on Jan 9, 2015

    @deepak1556
    Member

    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#L42 which 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..
    react-devtools-atom-shell

  4. zcbenz commented on Jan 9, 2015

    @zcbenz
    Contributor

    @deepak1556 Thanks for looking into this, I think we have to support the content_scripts to load latest react devtools extension.

  5. dlmanning commented on Apr 2, 2015

    @dlmanning

    Is this on the roadmap?

  6. steelbrain commented on Jul 3, 2015

    @steelbrain
    Contributor

    Bump.

  7. LongLiveCHIEF commented on Jul 23, 2015

    @LongLiveCHIEF

    It seems all the issues regarding this issue reference each other and then close. It's the infinite issue of doom.

  8. bruce commented on Jul 27, 2015

    @bruce

    Also, this is a wider issue; it's also a problem with the Ember Inspector, as noted in (merged) #1644.

  9. mrzmyr commented on Aug 29, 2015

    @mrzmyr

    Anything happend on this ?

  10. faurehu commented on Aug 30, 2015

    @faurehu

    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.json file. 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

  11. swashcap commented on Aug 31, 2015

    @swashcap
    Contributor

    👍

  12. swashcap commented on Aug 31, 2015

    @swashcap
    Contributor

    If you install React Devtools in ./devtools/react-devtools and then run:

    require('remote').require('browser-window').addDevToolsExtension('./devtools/react-devtools/shells/chrome');

    …it finds the manifest.json file. The docs should be updated. However, the dev tools don’t appear to load.

    😔

  13. dlmanning commented on Aug 31, 2015

    @dlmanning

    Anyone checked to see if React's beta dev tools work? I'll test them tomorrow if no one else gets a chance.

  14. 25 remaining items

  15. xhocquet commented on Mar 29, 2016

    @xhocquet

    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!

  16. inklesspen commented on May 12, 2016

    @inklesspen

    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.)

  17. frankhale commented on May 25, 2016

    @frankhale
    Contributor
  18. davej commented on May 25, 2016

    @davej
    Contributor

    @frankhale Awesome, were you able to get it working? It didn't work for me.

  19. frankhale commented on May 25, 2016

    @frankhale
    Contributor

    I haven't tried it yet but definitely will either today or in the next few days.

  20. albertoclarit commented on May 25, 2016

    @albertoclarit

    Not working for me...

  21. philostler commented on May 25, 2016

    @philostler

    Gave it a try earlier. Didn't work for me neither

  22. davej commented on May 25, 2016

    @davej
    Contributor
  23. philostler commented on Jun 4, 2016

    @philostler

    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..." 😞

  24. inklesspen commented on Jun 4, 2016

    @inklesspen

    @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.

    screen shot 2016-06-04 at 10 04 44 am

  25. philostler commented on Jun 4, 2016

    @philostler

    @inklesspen Thanks, confirmed also, but still not working in my own app. NP must be another issue

  26. albertoclarit commented on Jun 5, 2016

    @albertoclarit

    Electron 1.2.1 React DevTools is now working on my App...

  27. bachmay commented on Jun 10, 2016

    @bachmay

    AngularJS Batarang is still not working

    screenshot 2016-06-10 17 18 21

  28. mnquintana commented on Jun 10, 2016

    @mnquintana
    Contributor

    @bachmay Please open a new issue – this issue is only for the React dev tools not working. Thanks!

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions