The 'screen' module can't be used for app ready event

89 Views Asked by At

I am getting error pop-up while launching DMG. I have attached screenshot. If anyone knows how to fix this please help.

error screenshot

I added below code in main.js, but issue still presist.

const electron = require('electron')
  app.on('ready', () => {
    const electronScreen = electron.screen
  });
}
0

There are 0 best solutions below