vue-google-maps icon indicating copy to clipboard operation
vue-google-maps copied to clipboard

Problem during SSR

Open abador opened this issue 8 years ago • 3 comments

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:)

abador avatar Dec 22 '16 16:12 abador

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

luc0 avatar Feb 02 '17 20:02 luc0

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?

xkjyeah avatar Feb 03 '17 00:02 xkjyeah

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

luc0 avatar Feb 03 '17 15:02 luc0