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 Exceeded

See original GitHub issue

I’m sorry to bother everyone - this may be a dumb question. I’m using Mobx in a Meteor 1.7 project without any issues. I created a brand new Meteor 1.8 project w/React. It only has one route (react router) that works fine. I now want to add a store to begin building the UI. I added mobx and mobx-react using npm install --save. All goes well. But when I try to import { observable } from "mobx"; I get this Stack Exceeded error:

modules-runtime.js?hash=d3c3e5d67c95f97a60888bda7373292efad3be5e:56 Uncaught RangeError:
Maximum call stack size exceeded
    at Object.hasOwnProperty (<anonymous>)
    at strictHasOwn (modules-runtime.js?hash=d3c3e5d67c95f97a60888bda7373292efad3be5e:56)
    at getOwn (modules-runtime.js?hash=d3c3e5d67c95f97a60888bda7373292efad3be5e:216)
    at fileAppendIdPart (modules-runtime.js?hash=d3c3e5d67c95f97a60888bda7373292efad3be5e:456)
    at modules-runtime.js?hash=d3c3e5d67c95f97a60888bda7373292efad3be5e:480
    at Array.every (<anonymous>)
    at fileAppendId (modules-runtime.js?hash=d3c3e5d67c95f97a60888bda7373292efad3be5e:478)
    at fileResolve (modules-runtime.js?hash=d3c3e5d67c95f97a60888bda7373292efad3be5e:503)
    at fileResolve (modules-runtime.js?hash=d3c3e5d67c95f97a60888bda7373292efad3be5e:562)
    at fileResolve (modules-runtime.js?hash=d3c3e5d67c95f97a60888bda7373292efad3be5e:562)

I haven’t even gotten to the point where I make my object observable yet.
I’ve looked at every issue in the system and they all have to do with issuing commands. I’m not even to that point yet! I also created bare bones projects for previous Meteor versions back to 1.7.0 and got the same issue every time. Am I missing something stupid? Sorry in advance and thanks for any help! Phil

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
dnishcommented, Dec 18, 2018

Having exactly the same issue. Since the last MobX release, this error occurs. Reverting back to 5.7.0 solves the issue, so some changes in 5.8.0 cause the issue.

1reaction
mweststratecommented, Jan 21, 2019

@clhaas this seems to be resolved in the next version of meteor, and can already be tried in the beta: https://github.com/meteor/meteor/issues/10409#issuecomment-453169097

(Honestly, I have no clue at this moment whether webpack 4 or meteor was in the wrong here, so the issue could be reopened if the problem happens outside meteor as well)

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 RangeError: Maximum Call Stack Size Exceeded
The JavaScript RangeError: Maximum call stack size exceeded is an error that occurs when there are too many function calls, or if a...
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 stack size exceeded
Maximum call stack size exceeded error. This error is almost always means you have a problem with recursion in JavaScript code, as there...
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 >

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