I want to use loki js and I'm trying to call it on that variable, but it appears that the require has not been defined
My package.json
I want to use loki js and I'm trying to call it on that variable, but it appears that the require has not been defined
My package.json
There in main.js, I added this line
nodeIntegration: true
inside the function that creates a window
function createWindow () {
const mainWindow = new BrowserWindow({
width: 800,
height: 600,
webPreferences: {
preload: path.join(__dirname, 'preload.js'),
nodeIntegration: true, //add this line
}
})