Closed ayadgu closed 2 years ago
Having the same issue. Any help?
Try researching setItem method for localStorage and try setting it?
@Sseast any solution for this?
I've just cloned the repo, installed dependencies of both api/client with yarn and then yarn started them.
As soon as localholst:3000 opens, I face this error :
I have the same error as you. Did you fix it yet? help me
this might not be the best solution but try wrapping it in try catch block eg: let TOKEN ="" try{ TOKEN = JSON.parse(JSON.parse(localStorage.getItem("persist:root")).user).currentUser.accessToken || " "; } catch(err){ console.log(err); }
for me it works.... :)
this might not be the best solution but try wrapping it in try catch block eg: let TOKEN ="" try{ TOKEN = JSON.parse(JSON.parse(localStorage.getItem("persist:root")).user).currentUser.accessToken || " "; } catch(err){ console.log(err); }
for me it works.... :)
support me , please. My email: phuquangle5@gmail.com
this might not be the best solution but try wrapping it in try catch block eg: let TOKEN ="" try{ TOKEN = JSON.parse(JSON.parse(localStorage.getItem("persist:root")).user).currentUser.accessToken || " "; } catch(err){ console.log(err); } for me it works.... :)
support me , please. My email: phuquangle5@gmail.com
do you want me to send you the code
this might not be the best solution but try wrapping it in try catch block eg: let TOKEN ="" try{ TOKEN = JSON.parse(JSON.parse(localStorage.getItem("persist:root")).user).currentUser.accessToken || " "; } catch(err){ console.log(err); } for me it works.... :)
support me , please. My email: phuquangle5@gmail.com
do you want me to send you the code Yes, Can you help me edit the code?
me ed
yes ofcourse
me ed
yes ofcourse
hey pleasse email me share your fixed code i getting stuck to: senapahlevi1@gmail.com
I've just cloned the repo, installed dependencies of both api/client with yarn and then yarn started them.
As soon as localholst:3000 opens, I face this error :