amazona icon indicating copy to clipboard operation
amazona copied to clipboard

TypeError: Cannot read property '_id' of undefined

Open ordep2v opened this issue 5 years ago • 7 comments

Hi, i arealdy done this course and have one issue.

" TypeError: Cannot read property '_id' of undefined " errobasir2

I downloaded your full repository and have this error too.. Thanks

ordep2v avatar Dec 05 '20 00:12 ordep2v

image

akashk2002 avatar Dec 11 '20 02:12 akashk2002

Hi, I am getting an error at 12.lesson. Any suggestion how to solve it? amazona_error

sevtechcodes avatar Dec 27 '20 11:12 sevtechcodes

I solved my issue upgrading my mongodb to the latest version.

ordep2v avatar Dec 28 '20 02:12 ordep2v

same here

JennaFi avatar Jan 05 '21 22:01 JennaFi

nothing helped. mongodb already the latest version

JennaFi avatar Jan 11 '21 17:01 JennaFi

you only need delete your database in mongodb of product and users, in any case delete all and create it again restarting the application.

jorgeariasacevedo avatar Mar 21 '21 16:03 jorgeariasacevedo

check whether your API is working properly by using the postman tool if it is then check your database is created or not

by running the command on terminal: mongo use amanzona then show collection products

if exist check did you have imported products from redux store in the file where you tried to use product.

mohitshahu108 avatar May 06 '21 01:05 mohitshahu108