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
It's not working content_scripts in manifest.json on Electron. So React's inject script loading menualy. and I add a API for script injecting new version 0.2.0. please update this module.
Then add the React's inject script in to main.html(or entry root js) before loading your app
source running on renderer process:
...
<script>// in development.require('electron-react-devtools').inject()// your app root running on renderer process.require('./src')</script>
...
Might be a bit easier to present the install instructions in one step like this rather than asking the user to write require('electron-react-devtools').install() in their console.
Might be a bit easier to present the install instructions in one step like this rather than asking the user to write require('electron-react-devtools').install() in their console.
require('electron-react-devtools').install() only needs to be executed once, after that the DevTools extension will be loaded automatically every time you run your Electron app.
require('electron-react-devtools').install() only needs to be executed once
That doesn't seem to be the case for me. Other devtools plugins like spectron work like this but electron-react-devtools seems to require to be installed on every run for every window.
Activity
philostler commentedon May 25, 2016
Same experience as @davej using Electron 1.1.1 and React 15.1.0
firejune commentedon May 26, 2016
It's not working
content_scriptsinmanifest.jsonon Electron. So React's inject script loading menualy. and I add a API for script injecting new version 0.2.0. please update this module.Then add the React's inject script in to
main.html(or entry root js) before loading your appsource running on renderer process:
Thanks for your feedback.
davej commentedon May 26, 2016
Thanks, was able to get it working in one step using:
Might be a bit easier to present the install instructions in one step like this rather than asking the user to write
require('electron-react-devtools').install()in their console.Thanks for all your great work :-)
enlight commentedon May 26, 2016
require('electron-react-devtools').install()only needs to be executed once, after that the DevTools extension will be loaded automatically every time you run your Electron app.davej commentedon May 26, 2016
That doesn't seem to be the case for me. Other devtools plugins like spectron work like this but electron-react-devtools seems to require to be installed on every run for every window.