import Store from "electron-store"; Store.initRenderer(); const electronStorage = new Store();
Dont forget to initialize the storage before instantiating a new storage object. All i had to do was add
Store.initRenderer();
and it all works now.