SSR document not defined with Vue2.0
See original GitHub issuehi, 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:
- Created 7 years ago
- Comments:11 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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
Fixed /w 2.0.1, please do a fresh npm install.