project_travel_advisor icon indicating copy to clipboard operation
project_travel_advisor copied to clipboard

TypeError: Cannot read properties of undefined (reading 'lat') at getPlacesData (index.js:11:1)

Open radshan opened this issue 2 years ago • 6 comments

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.

radshan avatar Jun 20 '22 06:06 radshan

hey is it ok if i check your repo ? ☺ maybe then we can do something , maybe something is not correctly implemented ?

kiritocode1 avatar Jul 02 '22 19:07 kiritocode1

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

16030IT028 avatar Jul 11 '22 13:07 16030IT028

the error message suggests that the error , and i cannot fix this without checking the code now can i @16030IT028

kiritocode1 avatar Jul 18 '22 19:07 kiritocode1

do one thing

instead of
- bounds.lat  , bounds.long
+ bounds?.lat , bounds?.long

kiritocode1 avatar Jul 19 '22 14:07 kiritocode1

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

16030IT028 avatar Jul 19 '22 15:07 16030IT028

Having the same problem now. Can you tell me how you solved it?

shanipenkar avatar Dec 20 '22 09:12 shanipenkar