Javascript – Error when clicking on the app menu item Electron
When I click on a menu item I get an error: A JavaScript error occurred in the main process How can I fix this? Code: Main.js const { Menu } = require('electron') const { createNewFile } = require('./js/createNewFile.js') const menu…