Meteor 无法读取属性'_liveui';空的
我收到客户端错误(console.log错误),但我的应用程序正常工作(我可以添加用户) 错误如下: 未捕获的TypeError:无法读取null的属性“\u liveui” 该项目在我的回购协议中:Meteor 无法读取属性'_liveui';空的,meteor,Meteor,我收到客户端错误(console.log错误),但我的应用程序正常工作(我可以添加用户) 错误如下: 未捕获的TypeError:无法读取null的属性“\u liveui” 该项目在我的回购协议中: 发生了什么事?Meteor在提出这个问题后更新了一系列API,因此原始代码不再直接运行 使用jQuery.html插入呈现模板的结果不是正常的方法。最好使用包含功能的把手模板 例如,替换: $().ready(function(){ hello = Meteor.ui.render(func
发生了什么事?Meteor在提出这个问题后更新了一系列API,因此原始代码不再直接运行 使用jQuery.html插入呈现模板的结果不是正常的方法。最好使用包含功能的把手模板 例如,替换:
$().ready(function(){
hello = Meteor.ui.render(function(){
return Template.hello();
});
$('body').html(hello);
});
与:
我遇到了一个类似的问题,这个错误会影响附加到模板的事件
<body>
{{> hello}}
</body>
<template name="foo">
{{#if showNewUserDialog}}
{{> newUserDialog}}
{{else}}
other stuff
{{/if}}
</template>
<template name="newUserDialog">
some stuff
</template>
Template.foo.showNewUserDialog = function () {
return Session.get('showNewUserDialog');
};
Template.other.events({
'click #new_user': function () {
Session.set('showNewUserDialog', true);
}
});