Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 #211

Open
Cosen95 opened this issue Nov 1, 2020 · 4 comments

Comments

@Cosen95
Copy link

Cosen95 commented Nov 1, 2020

No description provided.

@Cosen95
Copy link
Author

Cosen95 commented Nov 1, 2020

electron报错

@agudovitoria
Copy link

Same issue 😞

@fearlessfe
Copy link

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

@JasonLiSZ
Copy link

JasonLiSZ commented Jan 27, 2021

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.
#226

Also, to make sure it's working properly, you may also including the previous pull request from [fearlessfe] as below:
#217

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants