Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to investigate "Exception form Deps recompute" what are the clues?

Tags:

node.js

meteor

I am on a big project, first exposure to Meteor, and I am starting to get this very often. It will be hard to trace it back to a particular commit, as it seemed intermittent.

What is a fruitful way to approach finding the problem? Is there anything in the exception that helps narrow it down? How do I step through/set breakpoints in/rule out the Deps? All my deps are the auto ones from mongo operations, or one on a session var, nothing explicit.

Thank you

https://gist.github.com/jimmack1963/6254452

like image 281
Jim Mack Avatar asked Feb 16 '23 13:02

Jim Mack


1 Answers

In my experience, this usually means you have crashing code within a template. You're using {{#each on something that's not an array or object, or some other no-no. If you were actually using Deps.autorun somewhere, presumably you would see your function in the stack trace; but if the trace is just a list of core Meteor functions, that means the problem is likely in a template or one of its helpers.

like image 120
Geoffrey Booth Avatar answered Mar 02 '23 01:03

Geoffrey Booth