electron

electron / 2022-05-19

E:\electronDir\chapter1>yarn run makeyarn run v1.22.17$ electron-forge make√ Checking your system√ Resolving Forge ConfigWe need to package your ap

electron / 2022-05-19

在渲染进程中,使用remote模块,getCurrentWindow()报错。 Uncaught TypeError: Cannot read properties of undefined (reading 'getCurrentWindow')

electron / 2022-05-18

第一步:点击 Edit Configurations第二步:点击+号,选择Node.js第三步:按下图进行填写。其中,Node interpreter 选择项目目录/node_modules/.bin/electron.cmdJavaScript file 是主进程文件名第四步:然后在主进程打上断点

electron / 2021-06-09

在主进程中设置了nodeIntegration: true,但是渲染进程依旧不能使用Node。如图:主进程代码app.on('ready', () => { const mainWindow = new BrowserWindow({ width: 800, height: 60