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…

Yuri Palienko
- 31
- 7
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

yasuda_t
- 125
- 3
- 12
1
vote
0 answers
component is not working in Vue Server-side rendering using vue-server-renderer
ClientOnly component imported from vue-client-only module from npm is not working in server-side rendering with vue-server-renderer. I have added firebaseui component inside the client-only tags. I have also tried the older no-ssr component, but…

Mihir Rane
- 71
- 1
- 5
1
vote
0 answers
Is it possible render `page not found` with 404 http code without redirect?
I'm using vue-storefront.
I need render 404 page without redirect and with 404 http code.
They are using vue-router + vue-server-renderer
I'm trying to catch 404 error, then rendering my component PageNotFound, setting status 404 to response and…

OleksandrYa
- 103
- 1
- 11
1
vote
4 answers
Giving 404 for only '/' route (Nuxt JS) - Shared Hosting Deployment
I am trying to set up a Nuxt app using @nuxt/pwa starter-template for Server Side Rendering on a Shared Hosting.
However my Nuxt app is running on "http://localhost:50000". I am trying to show the running app from "http://example.com" by Rewriting…

Jonson
- 316
- 3
- 11
0
votes
0 answers
vue-i18n,'TypeError: _vm.$t is not a function'
I'm using Vue 2.6.14 and vue-i18n 6.1.3 I can't figure it out how to put i18n translation in error.
When I first entered the page is normal,but there is an error after refresh
TypeError: _vm.$t is not a function
in entry-client.ts
import {…

z_ning
- 1
0
votes
2 answers
Vue packages version mismatch error while installing Nuxt.js: How to resolve?
I am trying to install Nuxt.js v3.4.2 using the command npx nuxt init nuxt3-demo and then running npm install. However, I am getting the following error message:
ERROR: Vue packages version mismatch:
- vue@3.2.40
- vue-server-renderer@2.7.10
This…

Syed Sajid
- 1,380
- 5
- 20
- 34
0
votes
2 answers
vue-server-renderer occured render function or template not defined in component: anonymous
I am using Vue 2.7 and webpack4 for SSR.
The error render function or template not defined in component: anonymous occurs when the following conditions are met
using child component
...