标签: meteoric

错误:无法在'Node'上执行'insertBefore'

我试图<div>在{{#each}}周围插入容器,但它也没有用.它也很奇怪,因为它适用于2个普通帖子列表页面,但不适用于按距离对它们进行排序的第3个页面.

更新: 我注意到后,我从改变模板JS template.name.onRenderedonCreated,分拣页的作品.但是,只有从先前的帖子列表页面而不是从个人资料页面开始,它才有效.

错误页面的唯一共同点是那些页面使用publishComposite进行排序.这可能是问题,因为publishComposite有一个子到父关系?

错误消息

Exception in queued task: Error: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.
    at Error (native)
    at Object.container._uihooks.insertElement (http://localhost:3000/packages/meteoric_ionic.js?e45c114e85716d9fad8bac1cd7904ae2700bc963:5750:19)
    at DOMRange._insertNodeWithHooks (http://localhost:3000/packages/blaze.js?695c7798b7f4eebed3f8ce0cbb17c21748ff8ba8:383:21)
    at Function.Blaze._DOMRange._insertNodeWithHooks (http://localhost:3000/packages/peerlibrary_blaze-components.js?4eddb4e3f0f660190548347e680d109a51a7050f:2377:10)
    at Function.DOMRange._insert (http://localhost:3000/packages/blaze.js?695c7798b7f4eebed3f8ce0cbb17c21748ff8ba8:354:16)
    at DOMRange.attach (http://localhost:3000/packages/blaze.js?695c7798b7f4eebed3f8ce0cbb17c21748ff8ba8:431:16)
    at Blaze._DOMRange.attach (http://localhost:3000/packages/peerlibrary_blaze-components.js?4eddb4e3f0f660190548347e680d109a51a7050f:2437:33)
    at Function.DOMRange._insert (http://localhost:3000/packages/blaze.js?695c7798b7f4eebed3f8ce0cbb17c21748ff8ba8:349:7)
    at DOMRange.attach (http://localhost:3000/packages/blaze.js?695c7798b7f4eebed3f8ce0cbb17c21748ff8ba8:431:16)
    at Blaze._DOMRange.attach (http://localhost:3000/packages/peerlibrary_blaze-components.js?4eddb4e3f0f660190548347e680d109a51a7050f:2437:33)
Run Code Online (Sandbox Code Playgroud)

meteoric_ionic js文件引用第19行

container._uihooks = {                                                                                               
    insertElement: function(node, next) {                                                                              
      var …
Run Code Online (Sandbox Code Playgroud)

javascript meteor meteoric meteor-blaze

6
推荐指数
1
解决办法
3071
查看次数

不能将{{> loginButtons}}与Meteor和Ionic一起使用

我想让我的用户登录/注册我的Meteor/Ionic应用程序.我认为这很容易,因为我使用简单的{{> loginButtons}},但它Uncaught Error: No such template: loginButtons在控制台中给我一个错误.我的代码是

<div class="bar bar-footer">
<button class="button button-clear">{{> loginButtons}}</button>
<div class="title">Start using!</div>
<button class="button button-clear">{{> loginButtons}}</button>
Run Code Online (Sandbox Code Playgroud)

当然,我已经安装了所有必需的软件包(例如meteoric:ionic通过社交网络的auth软件包).那么我怎么能这样做呢(我对这些东西都是新手)?任何帮助将不胜感激,谢谢.

javascript meteor meteoric ionic

2
推荐指数
1
解决办法
1096
查看次数

标签 统计

javascript ×2

meteor ×2

meteoric ×2

ionic ×1

meteor-blaze ×1