You may want to consider updating the readme to cover an error I was running into. Even though it's not caused by this package, it may be helpful for troubleshooting.
I had bootstrapped my project with vue-cli and was seeing this error after adding the createPersistedState to my store:
TypeError: fs.existsSync is not a function at getElectronPath
I believe this is caused by referencing electron outside of the main.js file.
I fixed it by adding this to my vue.config.js in order to set my target properly:
You may want to consider updating the readme to cover an error I was running into. Even though it's not caused by this package, it may be helpful for troubleshooting.
I had bootstrapped my project with
vue-cli
and was seeing this error after adding thecreatePersistedState
to my store:I believe this is caused by referencing electron outside of the
main.js
file.I fixed it by adding this to my
vue.config.js
in order to set my target properly: