hibiken / react-places-autocomplete

React component for Google Maps Places Autocomplete
https://hibiken.github.io/react-places-autocomplete/
MIT License
1.38k stars 388 forks source link

TypeError: Cannot read property 'length' of undefined #362

Closed mikestecker closed 3 years ago

mikestecker commented 3 years ago

Do you want to request a feature or report a bug? BUG

What is the current behavior? typing into the input, I get the following error:

Unhandled Runtime Error
TypeError: Cannot read property 'length' of undefined

Call Stack
PlacesAutocomplete._this.fetchPredictions
node_modules/react-places-autocomplete/dist/PlacesAutocomplete.js (101:0)

What is the expected behavior? type into input without getting error

Which versions of ReactPlacesAutocomplete, and which browser / OS are affected by this issue? "react-places-autocomplete": "^7.3.0" "react": "17.0.2" "next": "10.1.3"

Jazzykhan commented 2 years ago

did you solved it?