devtron icon indicating copy to clipboard operation
devtron copied to clipboard

When I execute require("devtron").install(), I get an error /Users/fengshuan/Desktop/workspace/mdnice-desktop/node_modules/devtron/api.js:6 Uncaught TypeError: Cannot read property 'BrowserWindow' of undefined at Object.exports.install

Open Cosen95 opened this issue 4 years ago • 4 comments

Cosen95 avatar Nov 01 '20 09:11 Cosen95

electron报错

Cosen95 avatar Nov 01 '20 09:11 Cosen95

Same issue 😞

agudovitoria avatar Nov 15 '20 13:11 agudovitoria

wrapper the install function with setImmediate setImmediate(() => { require('devtron').install() })

but it still have other problem. the project is too old to satify the chrome extention rules. you need to edit source code to solve it

fearlessfe avatar Nov 23 '20 06:11 fearlessfe

wrapper the install function with setImmediate setImmediate(() => { require('devtron').install() })

but it still have other problem. the project is too old to satify the chrome extention rules. you need to edit source code to solve it

That caused by the electron.remote.BrowserWindow.getDevToolsExtensions was obsolete, I'm trying to post pull request[226] to fix this by trying to locate get/add/remove extension methods in [session] instead of BrowserWindow. https://github.com/electron-userland/devtron/pull/226

Also, to make sure it's working properly, you may also including the previous pull request from [fearlessfe] as below: https://github.com/electron-userland/devtron/pull/217

JasonLiSZ avatar Jan 27 '21 06:01 JasonLiSZ