You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Type 'LocalForage' is not assignable to type 'Storage | AsyncStorage | undefined'.
Type 'LocalForage' is not assignable to type 'Storage'.
Types of property 'length' are incompatible.
Type '(callback?: ((err: any, numberOfKeys: number) => void) | undefined) => Promise' is not assignable to type 'number'.
Package versions:
vuex-persist: 3.1.3
localforage: 1.10.0
The text was updated successfully, but these errors were encountered:
If you see the error message, you can see the Type LocalForage is not assignable to type Storage | AsyncStorage | undefined. So that means it has to be one of these three types. LocalForage is asynchronous by its nature. Hence you have to typecast to AsyncStorage like below,
Imported localForage type is not compatible to what vuex-persist expects as storage. How's this meant to be used?
This code
cannot be compiled:
Package versions:
The text was updated successfully, but these errors were encountered: