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

138
Vistas
How to resolve Uncaught RangeError based on uuid function

I'm creating a React JS project in which I'm using uuid from uuidv4 to generate and use a new uuid per object I'm creating. I'm testing it now and getting the following error:

Uncaught RangeError: Maximum call stack size exceeded
    at Object.exports.deprecate (util.js:75:1)

The error is popping up when this method is called. I think it has to do with my use of uuid. Without that line, the app is running without the error.

  const addContactHandler = (contact) => {
    console.log(contact)
    setContacts([...contacts, {id: uuid(), contact}])
  };

If anyone has any ideas how I can fix this, any advice would be much appreciated!

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

I was able to resolve this by using the package react-uuid instead of uuidv4. Otherwise, no code changes were required.

about 4 years ago · Juan Pablo Isaza Denunciar
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