Why is my ipcMain not sending to ipcRenderer in Electron?
问题 New to electron I've figured out how to send from Renderer to Main but I'm trying to learn how to go from Main to Renderer . In my research I've read: IPC send from main process to renderer and tried: main.js : const { app, ipcMain, Menu } = require('electron') const appVersion = process.env.npm_package_version const mainWindow = require('./renderer/mainWindow') app.on('ready', () => { mainWindow.createWindow(), console.log(`Trying to send app version to renderer: ${appVersion}`), mainWindow