electron
Electron clipboard/image operation error
clipboard.*error|nativeImage.*format.*unsupported|writeImage.*failed
Fixes
- 1.Check nativeImage is not empty before writing to clipboard
- 2.Use supported formats: PNG for images, UTF-8 text, HTML for rich text
- 3.Ensure clipboard operations run in main process or through IPC bridge
electronclipboardnative-image
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 native module build/compatibility error
native module.*not found|prebuild.*error|node-gyp.*failed|NODE_MODULE_VERSION.*mismatch
- •Rebuild native modules for Electron's Node version: electron-rebuild
- •Use @electron/rebuild or postinstall script: electron-rebuild -f