Open mafar opened 7 years ago
I tried this solution as well but problem is sill there index.js
mainWindow = new BrowserWindow({
webPreferences: {
preload: path.join(__dirname, 'preload.js')
}
});
preload.js
window.__devtron = {require: require, process: process}
To add efficacy of this bug, I will add that I'm getting the exact same error. When using devtron in any electron window that also uses requirejs, it causes requirejs to throw this error.
Hi, I have this very strange issue where when I start electron via
npm run start
I get this error in console. see below.my HTML :
ERROR:
Error is very long so i am just pasting few lines above.