ThorstenHans/ngx-electron

Not working with Electron 12

DerHerrGammler opened this issue · 4 comments

I updated my Electron to electron version 12 and now this module didn't work anymore.

I updated my Electron to electron version 12 and now this module didn't work anymore.

Same here. IPCRendered is null since the update.

I've solved this by setting contextIsolation:false when creating a browserWindow in main.js file
win = new BrowserWindow({ width: 800, height: 600 ,webPreferences: { nodeIntegration: true, contextIsolation:false }});

I've solved this by setting contextIsolation:false when creating a browserWindow in main.js file
win = new BrowserWindow({ width: 800, height: 600 ,webPreferences: { nodeIntegration: true, contextIsolation:false }});

This works for me. Thank you very much

@willianSteffler thank you for the solution! It works.