I have a preloadscript and I need to access app. For some reason im getting this error.
const { contextBridge, app} = require('electron'); contextBridge.exposeInMainWorld('mainMethods', { quit: () => { console.log(app.getPath()) } })