It’s broken since v5.5.0 due to the update of Electron.
You can simply replace require('electron').remote to require('@electron/remote') to fix the issue.
require('electron').remote
require('@electron/remote')
Feel better, @ebigram!