I used vue-cli to create my project and enabled eslint to help keep my code proper. But for 4 days i kept getting error 'google is undefined' using 'var bounds = new google.maps.LatLngBounds()'. Almost started pulling out my hair, but instead found a tip somewhere on google to skip linting 'google'
using tag / global google / in my vue components script like this:
``
Now vue2-google-maps runs like beast! Hope this will help someone else. ;)
I used vue-cli to create my project and enabled eslint to help keep my code proper. But for 4 days i kept getting error 'google is undefined' using 'var bounds = new google.maps.LatLngBounds()'. Almost started pulling out my hair, but instead found a tip somewhere on google to skip linting 'google' using tag / global google / in my vue components script like this:
``
Now vue2-google-maps runs like beast! Hope this will help someone else. ;)