question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Maximum call stack size exceeded

See original GitHub issue

I just install this to React Native Debugger and I got

bundle.js:9 Uncaught RangeError: Maximum call stack size exceeded

was in this chuck of code

  function i(e, t) {
        var n = null;
        return o(e, function(e) { // here
            e.name === t && (n = e)
        }, function(e) {
            return e.children
        }),
        n
    }

from this function

, function(e, t, n) {
    "use strict";
    function r(e) {
        return e && e.__esModule ? e : {
            default: e
        }
    }
    function o(e, t, n) {
        if (e) {
            t(e);
            var r = n(e);
            if (r)
                for (var i = r.length, a = 0; a < i; a++)
                    o(r[a], t, n)
        }
    }
    function i(e, t) {
        var n = null;
        return o(e, function(e) {
            e.name === t && (n = e)
        }, function(e) {
            return e.children
        }),
        n
    }
    function a(e) {
        var t = arguments.length <= 1 || void 0 === arguments[1] ? {} : arguments[1]
          , n = arguments.length <= 2 || void 0 === arguments[2] ? {
            name: t.key || "state",
            children: []
        } : arguments[2];
        if (!(0,
        c.default)(e) && e && !e.toJS)
            return {};
        var r = t.key
          , o = void 0 === r ? "state" : r
          , u = t.pushMethod
          , p = void 0 === u ? "push" : u
          , f = i(n, o);
        return null === f ? {} : ((0,
        l.default)(e && e.toJS ? e.toJS() : e, function(e, t) {
            var r = e && e.toJS ? e.toJS() : e
              , o = {
                name: t
            };
            if ((0,
            s.default)(r)) {
                o.children = [];
                for (var i = 0; i < r.length; i++) {
                    var l;
                    o.children[p]((l = {
                        name: t + "[" + i + "]"
                    },
                    l[(0,
                    c.default)(r[i]) ? "object" : "value"] = r[i],
                    l))
                }
            } else
                (0,
                c.default)(r) ? o.children = [] : o.value = r;
            f.children[p](o),
            a(r, {
                key: t,
                pushMethod: p
            }, n)
        }),
        n)
    }
    t.__esModule = !0,
    t.default = a;
    var s = r(n(147))
      , c = r(n(758))
      , l = r(n(760))
}

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
nazrdogancommented, May 10, 2018

I found the problem. When I combine mulitple store to one and pass when pass root reference to child. it will give this error For example like this. i When I remove this . problem went away. I think RN debugger cannot handle circular dependency.

class UserStore {...}
class TodosStore {...}

class Store {

    constructor() {
        this.user = new UserStore(this);
        this.todos = new TodosStore(this);
    }

}
1reaction
nazrdogancommented, May 10, 2018

@yordis Did you solve this ? I have same issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

javascript - Maximum call stack size exceeded error
It means that somewhere in your code, you are calling a function which in turn calls another function and so forth, until you...
Read more >
JavaScript Error: Maximum Call Stack Size Exceeded
If you see the “Maximum Call Stack Size Exceeded” error, there's likely a problem with a recursive function within your JavaScript code.
Read more >
Uncaught RangeError: Maximum call ... - Net-Informations.Com
Maximum call stack size exceeded error ... This error is almost always means you have a problem with recursion in JavaScript code, as...
Read more >
RangeError: Maximum call stack size exceeded - Educative.io
The most common source for this error is infinite recursion. You must have a recursive function in your code whose base case is...
Read more >
Maximum Call Stack Size Exceeded (Typescript Error) - Medium
Scenario for Maximum Call Stack Size Exceeded Error ... In your code, the possibility is, You are calling a function that is calling...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found