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

那年仲夏 提交于 2019-12-30 22:57:18

问题


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


回答1:


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.




回答2:


This was pretty helpful to anyone else getting this.

http://www.meteorpedia.com/read/TypeError_-_Cannot_read_property_nodeName_of_null



来源:https://stackoverflow.com/questions/18283607/how-to-investigate-exception-form-deps-recompute-what-are-the-clues

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!