Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

137
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!