'How do I fix this error? Uncaught RangeError: Maximum call stack size exceeded at Object.exports.deprecate (util.js:75:1)
How do I fix this error? Uncaught RangeError: Maximum call stack size exceeded at Object.exports.deprecate (util.js:75:1).
I was trying to used uuidv4 to generate id in order to filter list of item with id, I got an error asking me to install "util", after installing util, i now got this error "Uncaught RangeError: Maximum call stack size exceeded at Object.exports.deprecate (util.js:75:1)."
Solution 1:[1]
Can you share your sample code maybe you are using a uuid() function inside a render function so this calls your uuid function again and again and this causes re-rendering of the component again and again uptil a certain amount that it reaches the maximum stack limit and throws an error For understanding:Suppose you have a job of vegetable cutting and you are said to chop the vegetables for certain quantity but you are keeping on chopping the vegetables until it reached the ceiling and make the troublesome same does the function uuid() does if you call it like this Similar Problem Code:Edit soln code: Edit so here the parenthesis was used after the edit which was the mistake and the edit function was called again and again and this causes a problem
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Mohammad Amaan Patel |
