Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem during SSR #120

Open
abador opened this issue Dec 22, 2016 · 3 comments
Open

Problem during SSR #120

abador opened this issue Dec 22, 2016 · 3 comments

Comments

@abador
Copy link

abador commented Dec 22, 2016

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
Copy link

luc0 commented Feb 2, 2017

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

@xkjyeah
Copy link
Collaborator

xkjyeah commented Feb 3, 2017

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
Copy link

luc0 commented Feb 3, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants