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

ReferenceError: window is not defined #32

Closed
webstermobile opened this issue Jan 4, 2017 · 2 comments
Closed

ReferenceError: window is not defined #32

webstermobile opened this issue Jan 4, 2017 · 2 comments

Comments

@webstermobile
Copy link

ReferenceError: window is not defined
at F:\zhs\node_modules.2.0.10@vue-head\vue-head.js:7:17

@shershen08
Copy link

I suppose it relates to SSR? #23 (comment)
Did you try add smth like:

// < HACK >
if (!process.env.BROWSER) {
  global.window = {};
}
// </ HACK >

@ktquez
Copy link
Owner

ktquez commented Jan 6, 2017

@webstermobile
If you are using SSR, at the moment while the vue-head does not support SSR, you can use the vue-meta, they have kept practically the same pattern as the vue-head.

But soon, as soon as I have a little time, I'll focus on the vue-head to support SSR.

If you have further questions, you can reopen the issue.

@ktquez ktquez closed this as completed Jan 6, 2017
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