Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(desktop): use default import for electron-updater CJS module

Jiang Bohanf9b193d467c6
diff --git a/apps/desktop/src/main/updater/index.ts b/apps/desktop/src/main/updater/index.ts
index 7dfab058d2..572b1d61e8 100644
--- a/apps/desktop/src/main/updater/index.ts
+++ b/apps/desktop/src/main/updater/index.ts
@@ -2,7 +2,10 @@
* Auto-updater module using electron-updater
* Checks for updates from GitHub releases and handles download/install
*/
-import { autoUpdater, UpdateInfo, ProgressInfo } from 'electron-updater'
+import pkg from 'electron-updater'
+import type { UpdateInfo, ProgressInfo } from 'electron-updater'
+
+const { autoUpdater } = pkg
import { BrowserWindow } from 'electron'
export interface UpdateStatus {