I have my google places autocomplete in my vue app.vue
however I get the error
Uncaught TypeError: Cannot read property 'setBounds' of undefined
at eval
This is my code https://hastebin.com/ebogewehir.vue
From the console.logs
it appears that console.log(autocomplete.getPlace())
prints undefined
but console.log(autocomplete)
prints Bx
.
I followed the documentation from google here https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-addressform
I used the ref
variable from here Google Places Autocomplete Vue.js