electron
Electron native module build/compatibility error
native module.*not found|prebuild.*error|node-gyp.*failed|NODE_MODULE_VERSION.*mismatch
Fixes
- 1.Rebuild native modules for Electron's Node version: electron-rebuild
- 2.Use @electron/rebuild or postinstall script: electron-rebuild -f
- 3.Check that native module supports the target Electron version and architecture
electronnative-modulesnode-gyp
Related Errors
electron3 fixes
Electron IPC communication failure
Error invoking remote|ipcRenderer.*undefined|ipcMain.*no handler
- •Expose IPC methods via preload script using contextBridge.exposeInMainWorld()
- •Register ipcMain.handle() in main process before renderer sends invoke()
electron3 fixes
Electron operation on destroyed window
BrowserWindow.*destroyed|Cannot.*call.*method.*destroyed.*window
- •Check win.isDestroyed() before calling methods on the window
- •Remove event listeners that reference the window in the 'closed' event
electron3 fixes
Electron auto-update failure
autoUpdater.*error|Update.*check.*failed|ENOENT.*app-update\.yml
- •Ensure app-update.yml is included in build output (electron-builder config)
- •Check that update server URL is accessible and returns valid release info