“require is not defined” error comes when i try to import js file (with node modules) to my main electron js file
问题 This is my folder folder structure Hi im new to electron.js I was facing for an issue where that i cannot capture jquery events in my main.js file. As a solution i created a separate file ( events.js )[now i can capture jquery events] and i connect it to index.html . So in my event.js i added a cron-job(node-cron) to check whether it's working or not, but when i try to run a project i get an error saying require is not defined . Without any import library , it worked. This is my index.html