Closed Nader-CS closed 3 months ago
solution : removing package and re-installing it again solved the problem !
@Nader-CS you can close the issue if it is solved for you
I just made my own storage
and it worked so idk
Here's an example if you need it (TypeScript + Web):
const storage: Storage = {
async getItem(key) {
return localStorage.getItem(key);
},
async setItem(key, value: string) {
return localStorage.setItem(key, value);
},
async removeItem(key) {
return localStorage.removeItem(key);
},
};
I had the same problem, @andriemc 's answer helped me in realising that the methods must be asynchronous.
package.json