const { v4: uuidv4 } = require(‘uuid’);
uuid();
I tried to define uuid and use it in another JS file not in main.js, but faced error that “Uncaught ReferenceError: require is not defined”
How do I use require in electron in main.js or another js file?