将特定项目添加到集合时的流星异常

时间:2014-03-11 23:19:08

标签: meteor

我为1.2k项目集合实现了无限滚动。除了滚动浏览某些元素时,它的效果很好 - 渲染它们时会引发异常,我无法弄清楚为什么......

Exception from Deps recompute: TypeError: Cannot read property 'nodeName' of null
    at Patcher.match (http://localhost:3000/packages/spark.js?742c715b73fac26c16ad433118b87045bc5658ff:1539:12)
    at http://localhost:3000/packages/spark.js?742c715b73fac26c16ad433118b87045bc5658ff:1352:23
    at visitNodes (http://localhost:3000/packages/spark.js?742c715b73fac26c16ad433118b87045bc5658ff:1319:11)
    at visitNodes (http://localhost:3000/packages/spark.js?742c715b73fac26c16ad433118b87045bc5658ff:1320:9)
    at visitNodes (http://localhost:3000/packages/spark.js?742c715b73fac26c16ad433118b87045bc5658ff:1320:9)
    at visitNodes (http://localhost:3000/packages/spark.js?742c715b73fac26c16ad433118b87045bc5658ff:1320:9)
    at patch (http://localhost:3000/packages/spark.js?742c715b73fac26c16ad433118b87045bc5658ff:1333:3)
    at http://localhost:3000/packages/spark.js?742c715b73fac26c16ad433118b87045bc5658ff:698:7
    at LiveRange.operate (http://localhost:3000/packages/liverange.js?710fe06b230e4e9dea26fab955d6a2badb8467cc:490:9)
    at http://localhost:3000/packages/spark.js?742c715b73fac26c16ad433118b87045bc5658ff:693:11 debug.js:41

任何人都可以解释一下吗?

1 个答案:

答案 0 :(得分:0)

原来我遇到了这个问题:

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

我的模板中有一些{{constant}}部分,当我删除它们时,错误就停止了。