Closed hubeishuaige closed 3 months ago
Hi please provide a proper reproduction so I can help :)
Same problem here. Simple (new) VueJS v3 app (Vite) using pinia for managing the stores (which just contain a few strings in my case), which works fine by itself.
Then I tried to add this extension and followed the getting started guide, but no matter what I configure, this extension acts as if it isn't there. Nothing is persisted/loaded, hooks are not called and no debug info is logged. When I try to $persist()/$hydrate() manually, the app tells me that those functions are not defined.
My guess is that the extension is not loaded at all (at least in the way the documentation shows)?
can confirm, in newest vue3 vite, i only use simple code inside pinia like this,
{ persist: { storage: localStorage, paths: ['use-my-fetch-crane'] } }
i have lot of ref() state in pinia, and its only saved empty object like this in localStorage:
can confirm, in newest vue3 vite, i only use simple code inside pinia like this,
{ persist: { storage: localStorage, paths: ['use-my-fetch-crane'] } }
i have lot of ref() state in pinia, and its only saved empty object like this in localStorage:
Same
Nevermind, it's just JSON.stringify()
can't serialize Map
.
Describe the bug
It is normal in vue3 local project development, but after executing the yarn build packaging and publishing command, this plug-in does not work, and there is no error prompt, as if there is no one
Reproduction
It is normal in vue3 local project development, but after executing the yarn build packaging and publishing command, this plug-in does not work, and there is no error prompt, as if there is no one
System Info
Used Package Manager
yarn
Validations