project_e_commerce icon indicating copy to clipboard operation
project_e_commerce copied to clipboard

TypeError: Cannot read properties of undefined (reading 'total_items')

Open shobhan-dash opened this issue 2 years ago • 4 comments

image

I downloaded the source code and runned it, which works fine. But changing the env variables with my own API keys and running gives this error. Any Idea how to resolve this issue?

shobhan-dash avatar Aug 06 '22 10:08 shobhan-dash

I also have this issue anyone know the solution?

crimsoncreates avatar Sep 03 '22 19:09 crimsoncreates

i have been battling with this issues more than 3 hours ago, but there is something i get to observe, after console.loging my cart state, in the console, i observed, despite fetching my fetchCart function in useEffects, my website renders multiple time, like 3-4 times, while the api is still pending or fetching, i observed my my cart state, shows its return values but on api fulfillment, my cart state returned undefined...

ghost avatar Sep 07 '22 16:09 ghost

someone pls figure this out and help us lol

crimsoncreates avatar Sep 13 '22 18:09 crimsoncreates

Visit this post: https://github.com/adrianhajdin/project_e_commerce/issues/63

Uwill18 avatar Oct 04 '22 15:10 Uwill18