@@NeenuJose-ov7ng go to package.json file check poxy you have added and in backend install cors and add middleware in settings.py i hope i have said these things in video
hello can you help me? I was having the same error as yours "ERROR Cannot read properties of undefined (reading '_id') TypeError: Cannot read properties of undefined (reading '_id') at Product (localhost:3000/static/js/bundle.js:1612:31) at renderWithHooks (localhost:3000/static/js/bundle.js:29664:22) at mountIndeterminateComponent (localhost:3000/static/js/bundle.js:32948:17) at beginWork (localhost:3000/static/js/bundle.js:34244:20) at HTMLUnknownElement.callCallback (localhost:3000/static/js/bundle.js:19260:18) at Object.invokeGuardedCallbackDev (localhost:3000/static/js/bundle.js:19304:20) at invokeGuardedCallback (localhost:3000/static/js/bundle.js:19361:35) at beginWork$1 (localhost:3000/static/js/bundle.js:39225:11) at performUnitOfWork (localhost:3000/static/js/bundle.js:38473:16) at workLoopSync (localhost:3000/static/js/bundle.js:38396:9)"
Thanks teacher
Welcome
at 41:00 ig you faced error because your api endpoint for getting detail product view is api/product/id but you've given await api/products/id
The images are not displaying
there was error coming is proxy error how to overcome that?
Go to package.json n add proxy in backend allow Cors to
How did you resolve it?
@@NeenuJose-ov7ng go to package.json file check poxy you have added and in backend install cors and add middleware in settings.py i hope i have said these things in video
can i contact you bro
hello can you help me? I was having the same error as yours
"ERROR
Cannot read properties of undefined (reading '_id')
TypeError: Cannot read properties of undefined (reading '_id')
at Product (localhost:3000/static/js/bundle.js:1612:31)
at renderWithHooks (localhost:3000/static/js/bundle.js:29664:22)
at mountIndeterminateComponent (localhost:3000/static/js/bundle.js:32948:17)
at beginWork (localhost:3000/static/js/bundle.js:34244:20)
at HTMLUnknownElement.callCallback (localhost:3000/static/js/bundle.js:19260:18)
at Object.invokeGuardedCallbackDev (localhost:3000/static/js/bundle.js:19304:20)
at invokeGuardedCallback (localhost:3000/static/js/bundle.js:19361:35)
at beginWork$1 (localhost:3000/static/js/bundle.js:39225:11)
at performUnitOfWork (localhost:3000/static/js/bundle.js:38473:16)
at workLoopSync (localhost:3000/static/js/bundle.js:38396:9)"
the error is on the Product.js