This repository was archived by the owner on Dec 26, 2018. It is now read-only.
This repository was archived by the owner on Dec 26, 2018. It is now read-only.
server-bundle created by vueify does not run in node #165
Closed
Description
Hey,
I'm trying to get the vue server-side rendering working in a browserify pipeline. Has anyone done this before? Is it possible with vueify?
It seems that the bundle generated by vueify cannot be executed by node. I'm getting this error in the console when accessing route /
:
ReferenceError: document is not defined
at Object.exports.insert (__vue_ssr_bundle__:10168:14)
at Object.21../components/Topbar.vue (__vue_ssr_bundle__:11122:65)
at s (__vue_ssr_bundle__:1:682)
at __vue_ssr_bundle__:1:733
at Object.22../App.vue (__vue_ssr_bundle__:11170:12)
at s (__vue_ssr_bundle__:1:682)
at __vue_ssr_bundle__:1:733
at Object.<anonymous> (__vue_ssr_bundle__:11660:12)
at Object.31../app (__vue_ssr_bundle__:11703:4)
at s (__vue_ssr_bundle__:1:682)
Probably from this line
Yes, I use single file .vue
components that contain styles. But shouldn't vue-server-renderer be smart enough not to run this in node?
Using vueify 9.4.0
and vue 2.1.4
Metadata
Metadata
Assignees
Labels
No labels