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

How to install devtron in electron 12 or higher with preload js and webpack #245

Open
raviSussol opened this issue Apr 10, 2021 · 3 comments

Comments

@raviSussol
Copy link

raviSussol commented Apr 10, 2021

I have an app having preload js used with bundling via webpack. I've added Devtron as an dependency package in the app. I've also added the line window.__devtron = {require, process}; in the preload.js file as guided in here. When I try to install by running require('devtron').install(); in the console tab of the electron devtools window then it throws an error Uncaught ReferenceError: require is not defined. I have even tried with window.require('devtron').install(); still throws the same error. Am i missing something?

@dev-manager-uk
Copy link

We have exactly the same issue. Did you manage to resolve it?

@sharunspi
Copy link

Add your main js file of electron here. may be you forgot to use node-integration

@v2018z
Copy link

v2018z commented Jun 18, 2021

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