How to install devtron in electron 12 or higher with preload js and webpack
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?
We have exactly the same issue. Did you manage to resolve it?
Add your main js file of electron here. may be you forgot to use node-integration