vue-google-maps
vue-google-maps copied to clipboard
Problem during SSR
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:)
+1 I have the same problem, it appears to be working only without SSR
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?
It's okey, I'll use it on client side