question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SSR document not defined with Vue2.0

See original GitHub issue

hi, since i updated to Vue 2.0 i get document not defined on server 🎯 and in Hackernews 2.0 example also

ReferenceError: document is not defined
    at C:\Users\marko\Desktop\Renka\vue-hackernews-2.0-master\node_modules\vue\dist\vue.js:5549:24
    at C:\Users\marko\Desktop\Renka\vue-hackernews-2.0-master\node_modules\vue\dist\vue.js:7:83

not sure its a Vue 2.0 error i dont know how to debug this 😕

thanks for Vue its an awesome framework 👊

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

11reactions
mib200commented, Jan 28, 2017

@yyx990803 I agree with @ram-you . I end up forking out most of the libraries and patching them up myself to check for the environment. It would be great if this can be incorporated in Vue itself.

And the way. I am 500% Vue convert. No more framework hells for me. Totally in love with SailsJS and VueJS architecture. Kudos to you and VueJS team.

Regards

1reaction
yyx990803commented, Sep 30, 2016

Fixed /w 2.0.1, please do a fresh npm install.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"document is not defined" in Nuxt.js - Stack Overflow
It's a common error when you start a Nuxt project ;-). The Choices.js lib is available only for client-side! So Nuxt tried to...
Read more >
Server-Side Rendering (SSR) - Vue.js
Synchronous being the key word there. If your app starts with a loading spinner, then fetches content via Ajax, the crawler will not...
Read more >
[Solved]-"document is not defined" in Nuxt.js-nuxt.js
It's a common error when you start a Nuxt project ;-). The Choices.js lib is available only for client-side! So Nuxt tried to...
Read more >
Creating Server-side Rendered Vue.js Apps Using Nuxt.js
Nuxt.js is based off an implementation of SSR for the popular React library called Next. ... Not much different from creating a Vue...
Read more >
Laravel + Vue: ReferenceError document is not defined at ...
If you're running into a document is not defined at insertStyleElement error with Vue + Laravel, it's likely because Laravel Mix changed the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found