GuillaumeLeclerc / vue-google-maps

Google maps component for vue with 2-way data binding
561 stars 654 forks source link

Window is not defined #144

Closed bparticle closed 6 years ago

bparticle commented 6 years ago

I am trying to integrate this plugin on a Nuxt Vue project, but I'm getting a build error saying window is not defined. I added lodash and vue-goog-maps to the project with npm. Am I missing a hidden dependency somehow? these are the relevant lines in the error: ` ERROR Nuxt error

ReferenceError: window is not defined

bparticle commented 6 years ago

This was a Nuxt issue. I eventually found the answer on this page https://nuxtjs.org/faq/window-document-undefined/.