-
Notifications
You must be signed in to change notification settings - Fork 973
Using React Devtools extension in Brave? #2716
Comments
I see issue #253 answers when easy addons / extensions will be addressed, but I'll leave this issue since I suspect someone has been using React DevTools as React components are used , e.g. in the Ledger integration branch |
@willy-b Sorry for closing that! :-( |
BrowserWindow.addDevToolsExtension disabled in Brave Electron?If the Obviously the other extensions don''t need this method. (But they're not DevTool extensions...?) They're loaded via BrowserWindow object comparisonIn Brave Electron prebuilts, BrowserWindow has no
Compared to the
|
The There were a lot of changes in this commit so I can't tell if disabling Thanks! |
cc @bridiver but unlike Electron upstream we support extensions in general so no special case like this is needed I think. We could try to install the extensions like we do for pdfjs only in debug mode in this task. |
Thanks for looking at this @bbondy . Having it installed in debug mode sounds like a great approach. It is a DevTools extension so I don't think it can be installed in quite the same way as PDFJS, as the extension scripts will need access to the DevToolsAPI object. I need to experiment a bit to see if I can bring over some of what the Thanks! |
Tracking here: #8095. |
(Warning: Electron newbie here)
Does anyone have instructions for getting the React Devtools extension working in Brave?
I followed instructions for installing it in Electron, via ready-made modules and manually, but ran into errors.
The main error was
electron.remote.BrowserWindow
object apparently missing theaddDevToolsExtension
method (assuming that's a version issue). I also hit Content Security Policy issues (see below).For example,
Trying the electron-react-devtools module
Link: https://www.npmjs.com/package/electron-react-devtools
Steps:
In
js/entry.js
:Desired result:
Should see 'React' tab appear in devtools.
Actual result:
Errors with Content Security Policy and
electron.remote.BrowserWindow
missing theaddDevToolsExtension
method.Sample errors:
violates the following Content Security Policy directive: "script-src 'self' http://localhost:*"'
Uncaught TypeError: electron.remote.BrowserWindow.addDevToolsExtension is not a function
Full error traces:
The text was updated successfully, but these errors were encountered: