This “require is not defined” is pretty annoying to me as Electron user. Last year when I got this problem, I can simply solve it by adding: nodeIntegration: true. But this time, on 2021, this problem comes again. So to solve it we need to...

Source Codes & Coding Tutorials
This “require is not defined” is pretty annoying to me as Electron user. Last year when I got this problem, I can simply solve it by adding: nodeIntegration: true. But this time, on 2021, this problem comes again. So to solve it we need to...
Let’s go to the point. First of all you must download and install NodeJS. After it’s installed, you’re ready to start to make new project. Open your Command Prompt, in Windows for example. Go to any folder/directory. Make new folder for your project, and go...
The process is simply quite similar to how we do it for Windows on this link: https://thirteenov.ciihuy.com/how-to-build-your-electron-js-app-as-windows-executable-for-windows/ The only difference is, instead of win32, we use darwin. So the command is like this: And one more, the icon format for Mac is icns. What about...
I made this post because if I did not work on Elenctron project for some times, I can not remember how I did it that time. So, let’s say we have a “ready to build” Electron project, to build it for Windows, first let’s install...