ErrorPro / react-google-autocomplete

React components for google places API.
MIT License
476 stars 113 forks source link

TypeError: Cannot read property 'AutocompleteService' of undefined #120

Closed shubuu97 closed 3 years ago

shubuu97 commented 3 years ago

Need to add some checks before accessing AutocompleteService from places at line no 108 in lib/usePlacesAutocompleteService.js

Screenshot 2021-07-01 at 10 02 50 AM

ErrorPro commented 3 years ago

@shubuu97 Hey, I initially did that to prevent this kinda issues, but the error is really saying that you don't have places API available at your global scope. I'll think through how to safely overcome this error in a more friendly way. Thanks!