Node.js 流星第一次装载的路线是好的。然后在返回到路由时,我得到以下信息:错误:无法执行“insertBefore”
Deps重新计算函数异常:错误:未能在“节点”上执行“insertBefore”:要在其前面插入新节点的节点不是此节点的子节点。 错误的本地 在Function.DOMRange.\u insertNodeWithHooks 我认为这是我的模板呈现的问题 我不知道到哪里去解决这个问题?当我清除数据库时,它才开始发生 这是我的布局模板:Node.js 流星第一次装载的路线是好的。然后在返回到路由时,我得到以下信息:错误:无法执行“insertBefore”,node.js,meteor,meteor-blaze,Node.js,Meteor,Meteor Blaze,Deps重新计算函数异常:错误:未能在“节点”上执行“insertBefore”:要在其前面插入新节点的节点不是此节点的子节点。 错误的本地 在Function.DOMRange.\u insertNodeWithHooks 我认为这是我的模板呈现的问题 我不知道到哪里去解决这个问题?当我清除数据库时,它才开始发生 这是我的布局模板: <div class="container"> <navigation> {{>
<div class="container">
<navigation>
{{> yield region='navigation'}}
<leftmenu>
{{> yield region="leftmenu"}}
</leftmenu>
<rightmenu>
{{> yield region="rightmenu"}}
</rightmenu>
</navigation>
<corezone>
{{> yield}}
</corezone>
</div>
<footer>
{{> yield region='footer'}}
</footer>
你可以发布你的一些代码吗?刚刚添加了我的模板需要发布页面的代码,当你加载它时,错误会弹出。在我的例子中,我注意到Template.name.onRendered有问题,例如在js文件中
Router.map(function () {
this.route('matching', {
path: '/', // match the root path
layoutTemplate: 'mylayout',
waitOn: function() {
Meteor.subscribe('stuff');
Meteor.subscribe('morestuff');
return
},
onBeforeAction: function () {
if (! Meteor.user()) {
if (Meteor.loggingIn()) {
if (Matches.find({}).count()==0) {
Router.go('profile');
}
}
else{
Router.go('loginscreen');
}
}
},
onAfterAction: function() {
$("#menuleft").mmenu({
offCanvas : {
position : 'left'
},
classes : 'mm-light',
dragOpen : true,
counters : true,
searchfield : true,
header : {
add : true,
update : true,
title : 'Menu'
}
});
},
yieldTemplates: {
'newNav': {to: 'navigation'},
'menuright': {to: 'rightmenu'},
'menuleft': {to: 'leftmenu'}
}
}),