GuillaumeLeclerc / vue-google-maps

Google maps component for vue with 2-way data binding
560 stars 653 forks source link

Problem during SSR #120

Open abador opened 7 years ago

abador commented 7 years ago

I'm trying to add this lib to my app with SSR. I've implemented logic that doesn't init the map on the server but unfortunately there is a problem during import: import {load, Map, Marker} from 'vue-google-maps'

ReferenceError: window is not defined

Any help or fix would be greatly appreciated:)

luc0 commented 7 years ago

+1 I have the same problem, it appears to be working only without SSR

xkjyeah commented 7 years ago

Is it possible to not load the library at all during SSR? Pretty much everything in there expects a browser environment. If not, what stubs do you need for SSR?

luc0 commented 7 years ago

It's okey, I'll use it on client side