Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server side render error RangeError: Maximum call stack size exceeded #5445

Closed
pathawee opened this issue Apr 14, 2017 · 1 comment
Closed

Comments

@pathawee
Copy link

Version

2.2.6

Reproduction link

#5444

Steps to reproduce

screen shot 2560-04-14 at 9 11 18 pm

I got this error when I use v-for dynamic components on server side render.
If data less then 10 records it's work fine and use client render it's work too.
Error only use server side render. How do I solve?

<component v-for="element in dataItems" :is="element.name" :key="element.id"></component>
here is my json data

[
  {
    "id": "1",
    "name": "Layout12"
  },
  {
    "id": "2",
    "name": "Layout12"
  },
  {
    "id": "3",
    "name": "Layout12"
  },
  {
    "name": "Layout12",
    "id": "4"
  },
  {
    "name": "Layout12",
    "id": "5"
  },
  {
    "name": "Layout12",
    "id": "6"
  },
  {
    "name": "Layout12",
    "id": "7"
  },
  {
    "name": "Layout12",
    "id": "8"
  },
  {
    "name": "Layout12",
    "id": "9"
  },
  {
    "name": "Layout12",
    "id": "10"
  }
]

What is expected?

I would to use server side render with v-for dynamic components.

What is actually happening?

use v-for dynamic components on server side render from data more then 10 records
will get RangeError: Maximum call stack size exceeded

@yyx990803
Copy link
Member

That is not a reproduction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants