Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
radshan opened this issue Jun 20, 2022 · 6 comments

Comments

@radshan
Copy link

radshan commented Jun 20, 2022

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.

@kiritocode1
Copy link

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

@16030IT028
Copy link

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

@kiritocode1
Copy link

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

@kiritocode1
Copy link

kiritocode1 commented Jul 19, 2022

do one thing

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

@16030IT028
Copy link

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

@shanipenkar
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants