xkjyeah / vue-google-maps

Google maps component for vue with 2-way data binding
https://xkjyeah.github.io/vue-google-maps/
1.88k stars 475 forks source link

vue-cli template eslint 'google is undefined' #311

Open mrlnnl opened 6 years ago

mrlnnl commented 6 years ago

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. ;)

a-ahrens commented 1 year ago

@mrlnnl Thank you so much for sharing this tip! This has made my day much better now.