1

我使用Telescope创建了一个站点,但加载时我在浏览器控制台中收到此错误消息。如何修复此错误。

Exception in template helper: TypeError: Cannot read property 'undefined' of undefined
    at Object.Template.avatar.helpers.size (http://localhost:3000/packages/utilities_avatar.js?76304dc56cbb0aaaef4d60c3d930750cea5ac835:96:37)
    at bindDataContext (http://localhost:3000/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:2880:16)
    at Blaze._wrapCatchingExceptions (http://localhost:3000/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:1651:16)
    at http://localhost:3000/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:2928:66
    at Function.Template._withTemplateInstanceFunc (http://localhost:3000/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:3476:12)
    at wrapHelper (http://localhost:3000/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:2927:27)
    at Spacebars.call (http://localhost:3000/packages/spacebars.js?7bafbe05ec09b6bbb6a3b276537e4995ab298a2f:172:18)
    at Spacebars.mustacheImpl (http://localhost:3000/packages/spacebars.js?7bafbe05ec09b6bbb6a3b276537e4995ab298a2f:109:25)
    at Object.Spacebars.mustache (http://localhost:3000/packages/spacebars.js?7bafbe05ec09b6bbb6a3b276537e4995ab298a2f:113:39)
    at Template.avatar.HTML.DIV.class (http://localhost:3000/packages/utilities_avatar.js?76304dc56cbb0aaaef4d60c3d930750cea5ac835:48:82)
4

2 回答 2

0

这是您问题的答案:Stack-link 阅读有关保护的信息,由于缺少变量/键/方法而出现的问题,因为它尚未加载。它主要是因为它被加载了,但除非它涉及到 webbrowser,否则您会收到此错误消息。

于 2015-10-13T18:26:46.240 回答
-1

浏览您的应用程序并仔细查看模板的名称和助手、事件。可能与您的 HTML 模板名称相等Template.yourtemplate.helper或不Template.yourtemplate.event相等

于 2015-08-13T12:41:09.767 回答