Electron-builder: this.app.whenReady is not a function when running electron-updater

Created on 27 Nov 2018  路  2Comments  路  Source: electron-userland/electron-builder


  • Version: 20.36.2

  • electron-updater: 4.0.4

  • Target: mac + web



I'm trying to use electron-updater, but I get this error:

TypeError: this.app.whenReady is not a function
at ElectronAppAdapter.whenReady (/Users/jetlej/Projects/Task Slayer/code/node_modules/electron-updater/src/ElectronAppAdapter.ts:9:21)

Comes from this code:

app.on('ready', () => {
  autoUpdater.checkForUpdates()
})
electron-updater

Most helpful comment

What Electron version are you running?

electron-builder > 20.35.0 requires Electron 3.

All 2 comments

What Electron version are you running?

electron-builder > 20.35.0 requires Electron 3.

That was the issue. Upgrading to electron 3.0 made it work! Thanks

Was this page helpful?
0 / 5 - 0 ratings