Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

206
Vistas
Nuxt: Maximum call stack size exceeded when render dynamic imported component on server side

I'm using asyncData to fetch some content blocks from DB, after that I want to render each block using <component :is="block.component" but I'm getting Maximum call stack size exceeded. I've tried to use fetch with fetchOnServer: true option instead asyncData but error is the same.

P.S It works using fetch with fetchOnServer: false but I need to render on server side.

In console I'm getting the message: Cannot stringify a function component

<template>
  <div>
    <div v-for="block in blocks" :key="block._id">
      <component :is="block.component" :content="block.content"></component>
    </div>
  </div>
</template>

<script>
import { fetchMainBlocks } from "../services/main.js";

export default {
  async asyncData() {
    const response = await fetchMainBlocks();

    const blocks = response.map(block => {
      return {
        ...block,
        component: () => import(`../components/main/${block.template}/${block.ver}.vue`)
      }
    });

    return {
      blocks
    }
  }
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda