gpt4 book ai didi

meteor - 跟踪器重新计算功能的异常

转载 作者:行者123 更新时间:2023-12-04 08:55:16 24 4
gpt4 key购买 nike

我有一个模板助手可以访问我的应用程序中的集合,但我关闭了 react 性:

Template.homeBoxGroupsTpl.helpers({
boxes: function () {
return Boxes.find({},
{
sort: {
order: 1
},
reactive: (Session.get("homeCanvasTplReactive") || false)
}
);
}
});

在我的页面上插入一个新元素后,该元素又会更新集合,Meteor 将在浏览器控制台中抛出错误:
    Error: Exception from Tracker recompute function: reporters.js?1429904535194:67 
Error: Error: Bad index in range.getMember: 16
at DOMRange.getMember (http://tidee-vm/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:586:11)
at http://tidee-vm/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:2727:45
at Object.Tracker.nonreactive (http://tidee-vm/packages/tracker.js?6d0890939291d9780f7e2607ee3af3e7f98a3d9c:593:12)
at Object.Blaze.Each.eachView.onViewCreated.eachView.stopHandle.ObserveSequence.observe.changedAt (http://tidee-vm/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:2721:17)
at http://tidee-vm/packages/observe-sequence.js?0532a9dd76dd78f543eb4d79a1e429df186d8bde:313:21
at Function._.each._.forEach (http://tidee-vm/packages/underscore.js?0a80a8623e1b40b5df5a05582f288ddd586eaa18:164:22)
at diffArray (http://tidee-vm/packages/observe-sequence.js?0532a9dd76dd78f543eb4d79a1e429df186d8bde:299:5)
at http://tidee-vm/packages/observe-sequence.js?0532a9dd76dd78f543eb4d79a1e429df186d8bde:147:9
at Object.Tracker.nonreactive (http://tidee-vm/packages/tracker.js?6d0890939291d9780f7e2607ee3af3e7f98a3d9c:593:12)
at http://tidee-vm/packages/observe-sequence.js?0532a9dd76dd78f543eb4d79a1e429df186d8bde:121:15

任何想法如何调试这个,或者它是一个 meteor 问题?

最佳答案

Meteor 的错误消息在除 Chrome 之外的所有浏览器中都很糟糕,因为 Meteor 期望堆栈跟踪包含错误消息,但这仅由 Chrome 完成。我不想这么说,但在调试 Meteor 应用程序时,您可能不得不使用 Chrome。 :(

关于meteor - 跟踪器重新计算功能的异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29856367/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com