Questions tagged [vue-server-renderer]

19 questions
6
votes
1 answer

vue-server-renderer not able to build bundle file

I'm trying to create a @vue/cli3 SSR project and cant seem to generate the server bundle files. Client builds fine. package.json scripts "scripts": { "serve": "npm run build && node scripts/serve", "build": "npm run build:server && mv…
Brandon Deo
  • 4,195
  • 4
  • 25
  • 42
5
votes
1 answer

Django + Vue.js + SSR

I'm facing interesting problem... I do have a form separated into steps - like wizard. Each step (even the 1st one) is loaded from server, where sits Django. The wizard itself is Vue component. Everything works fine together but now I would like to…
n1_
  • 4,227
  • 4
  • 34
  • 35
4
votes
1 answer

Tracking down memory leak in Vue.js server-side rendering?

We've got a Vue.js (v2.2.6) app running in production with server-side rendering based on the Hacker News demo app structure. We've got a memory leak that causes the process to run out of memory and crash after around 6-12 hours, and we've started…
James Simpson
  • 13,488
  • 26
  • 83
  • 108
2
votes
1 answer

How to implement vuex-persistedstate in vue/ssr

I need to persist state in vue ssr app, but can't understand how to implement this. As storage, I want to use cookies. When I install the plugin as written in readme nothing happens, that it's strange: I expect an error because js-cookies calls…
1
vote
1 answer

Vue.js dev server is incrementing the port when using yarn serve?

When building my Vue development server (yarn serve) each time I run it the port my project is being served on is incremented by 1 (3000 to 3001) each time I run yarn serve I am also making sure to exit the previous process... Is there any known…
ZekeC
  • 393
  • 1
  • 3
  • 13
1
vote
2 answers

Vue Server Side Rendering: Error in beforeCreate hook: ReferenceError: document is not defined

It happens when add in .vue file. [Vue warn]: Error in beforeCreate hook: "ReferenceError: document is not defined" I mostly wrote code based on tutorial site. https://github.com/vuejs/vue-hackernews-2.0/ src/App.vue