ReactJS chrome extension installed but not showing up

后端 未结 5 1460
北海茫月
北海茫月 2021-02-12 21:47

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

相关标签:
5条回答
  • 2021-02-12 21:59

    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

    0 讨论(0)
  • 2021-02-12 22:03

    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.

    0 讨论(0)
  • 2021-02-12 22:06

    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.

    0 讨论(0)
  • 2021-02-12 22:19

    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.

    0 讨论(0)
  • 2021-02-12 22:24

    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 = {};
    
    0 讨论(0)
提交回复
热议问题