Skip to content

Error when using with SSR #59

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

Open
cmseguin opened this issue Oct 19, 2017 · 2 comments
Open

Error when using with SSR #59

cmseguin opened this issue Oct 19, 2017 · 2 comments

Comments

@cmseguin
Copy link

/Users/cmseguin/dev/git/home-controller/node_modules/vue-hot-reload-api/dist/index.js:3
var map = (window.__VUE_HOT_MAP__ = Object.create(null))
                                  ^

ReferenceError: window is not defined
    at Object.<anonymous> (/Users/cmseguin/dev/git/home-controller/node_modules/vue-hot-reload-api/dist/index.js:3:35)
    at Module._compile (module.js:624:30)
    at Object.Module._extensions..js (module.js:635:10)
    at Module.load (module.js:545:32)
    at tryModuleLoad (module.js:508:12)
    at Function.Module._load (module.js:500:3)
    at Module.require (module.js:568:17)
    at require (internal/module.js:11:18)
    at $serverRequire (/Users/cmseguin/dev/git/home-controller/dist/server.js:2198:22)
    at $getRef (/Users/cmseguin/dev/git/home-controller/dist/server.js:2230:20)

I believe a simple check on the window should fix that issue

@JohnLouderback
Copy link

@cmseguin Were you able to fix this?

@davidovich
Copy link

I believe this is fixed in 554ffa3

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