You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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 linewindow.__devtron = {require, process};
in thepreload.js
file as guided in here. When I try to install by runningrequire('devtron').install();
in the console tab of the electron devtools window then it throws an errorUncaught ReferenceError: require is not defined
. I have even tried withwindow.require('devtron').install();
still throws the same error. Am i missing something?The text was updated successfully, but these errors were encountered: