From f9b193d467c62e2efd4e45adeae9700ec4698a9c Mon Sep 17 00:00:00 2001 From: Jiang Bohan Date: Wed, 11 Feb 2026 20:20:47 +0800 Subject: [PATCH] fix(desktop): use default import for electron-updater CJS module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit electron-updater is a CommonJS module — ESM named imports fail at runtime. Switch to default import with destructuring. Co-Authored-By: Claude Opus 4.6 --- apps/desktop/src/main/updater/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/desktop/src/main/updater/index.ts b/apps/desktop/src/main/updater/index.ts index 7dfab058..572b1d61 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 {