I'm working on a small vue project and I'm using marker-animate-unobtrusive library to move markers over the map. The issue here is that when I import this library in one of my pages, the whole app won't load. for example, when I start my dev server without importing the library it starts at "localhost:port/#/login", but when I import it, it starts at "localhost:port" and only shows an empty screen.
I've tried using
var SlidingMarker = require('marker-animate-unobtrusive');
Instead of
import SlidingMarker from 'marker-animate-unobtrusive'
but it doesn't fix my issue.
edit:
Apparently, this library requires
google
to be available onwindow
object upon initialization, but it is not there yet. It is possible, that library is imported (included) in your project beforegoogle-maps
script.Try changing the order of imports. Make sure that
marker-animate-unobtrusive
is loaded aftergoogle-maps
script.