Build App And Then 'cookies' Throw Error


Hey everyone,

I am using electron-packager to package my app. I have a process in my app that gets current cookies and then sets them later on. Basically everytime I package the app and run it I get this error:

“TypeError: Cannot read property ‘cookies’ of undefined at …”

I don’t understand what the issue could be? Could anyone give me some insight on this issue?
Thanks for your time and help!