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.

Basic usage breaks in Nuxt SSR

See original GitHub issue

FeathersVuex breaks on Nuxt SSR with the most basic usage.

$FeathersVuex.Todo items load fine on client side (open root, then click the link to /todos);

On server side (refresh /todos), infinite recursion happens in toJSON in feathers-vuex/lib/service-module/model.js:237.

Steps to reproduce

See this repo/branch for a reproduction:

FeathersVuex 1.7.0-pre.54. Node 10 and 8 tested, app created using create-nuxt-app.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

NickBollescommented, Feb 17, 2019

Yea. I agree. But I’m not sure what the default state is, of a JavaScript class with a getter only.

You can always do object.defineproperty with enumerable false to define the getter, which should make the property non enumerable and ignored by the merge function, and thus the toJSON method.

But we should confirm that it currently respects the same as JavaScript classes or that could be confusing.

NickBollescommented, Feb 14, 2019

Sweet. Well I can try to look at this at some point. Thanks for the reproduction repo @palivonas!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nuxt SSR breaks when updating data values - Stack Overflow
Nuxt SSR breaks when updating data values ... this error happes when I update a property value and some computed property uses that...
Read more >
Server-side rendering with Vue and Nuxt.js - LogRocket Blog
Learn about server-side rendering (SSR) and client-side rendering (CSR), how its evolved, and how to use implement it with Nuxt.js and Vue.
Read more >
Server Side Rendering - Nuxt
Server-side rendering (SSR), is the ability of an application to contribute by displaying the web-page on the server instead of rendering it in...
Read more >
Vue to Nuxt: Server-Side Rendering Example
When we visit a page by entering the URL or refreshing it, we are getting the markup from the server (SSR). Now, when...
Read more >
Server-Side Rendering with Nuxt.js Application - Medium
In this guide you get the answer to these questions and you will get to know all the differences between all SSR techniques...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found