sindresorhus / electron-store

Simple data persistence for your Electron app or module - Save and load user preferences, app state, cache, etc
MIT License
4.57k stars 148 forks source link

Not working in distributed Electron app #234

Closed GarryLowther closed 2 years ago

GarryLowther commented 2 years ago

I added your package to my Electron app and it works great using npm start, however when I package and distribute it, it fails. What steps should I take to make sure that your package is loaded in the distributed version?

GarryLowther commented 2 years ago

I added the specified dependencies (conf & type-fest) to my project using npm, then made sure that the node_modules folder was distributed with my app, and all worked as expected.

GarryLowther commented 2 years ago

Closed as I solved this myself. Hopefully someone else can learn from my mistakes?