No Preview

Shantanu Aggarwal

Posted on 30 January at 21:42

Can't convert empty array..

No Preview

Hi Rizwan...i am building flipkart clone through react with the help of your videos. Now i am facing an issue that is stopping me to progress further...the screenshot of error and code is attached below

1

33

0

No Preview

Shantanu Aggarwal

India

***

Explore more similar Post

1 Comments

Shantanu Aggarwal

31 January at 15:59

Please Help me with this..It's very important

0
REPLY

Rizwan Khan

2 February at 17:54

Your cartItems is either undefined or null which cant be converted to object and Object.keys expects an object so plz have look on your cartItems if cartItems is undefined or null then it will give you this error

1
REPLY

Shantanu Aggarwal

3 February at 15:45

Actually i wronged the cart state with auth that's why this error pops up.. Now i fixed that part and error is gone but still thanks for advice

0
REPLY