project_travel_advisor
project_travel_advisor copied to clipboard
TypeError: Cannot read properties of undefined (reading 'lat') at getPlacesData (index.js:11:1)
I do not know why I am getting this error, code looks exactly the same as in the video.
I have tried changing
const [bounds, setBounds] = useState(null)
to const [bounds, setBounds] = useState({ })
but it still throws this error, have been stuck on this issue for the last 3 hours now. Any help would be appreciated.
hey is it ok if i check your repo ? ☺ maybe then we can do something , maybe something is not correctly implemented ?
hey is it ok if i check your repo ? ☺ maybe then we can do something , maybe something is not correctly implemented ?
can u help me to fix the bug
the error message suggests that the error , and i cannot fix this without checking the code now can i @16030IT028
do one thing
instead of
- bounds.lat , bounds.long
+ bounds?.lat , bounds?.long
do one thing
instead of - bounds.lat , bounds.long + bounds?.lat , bounds?.long
can i show my error in googlemeet r teams so it is easy to rectify
Having the same problem now. Can you tell me how you solved it?