Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/image-processing/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Meteor Deps重新计算失败_Meteor - Fatal编程技术网

Meteor Deps重新计算失败

Meteor Deps重新计算失败,meteor,Meteor,单击“上一个”按钮将检索上一个日期的集合。例如,如果当前日期为2013-04-05,则“上一步”按钮将检索2013-04-04的所有集合,依此类推。但是,自动更新不起作用。新的事件集合从未出现,并且发生异常 此外,如果我尝试创建新事件,也会遇到此错误。只有刷新页面,我才能在集合中看到新事件 错误 查找事件列表的代码,else下的代码是相关部分 单击“上一步”将触发上述列表函数中的更新 我们决定呈现事件列表的部分 个别活动的模板 {{秒} {{date} {{{name} 解决了我的问题。结果

单击“上一个”按钮将检索上一个日期的集合。例如,如果当前日期为2013-04-05,则“上一步”按钮将检索2013-04-04的所有集合,依此类推。但是,自动更新不起作用。新的事件集合从未出现,并且发生异常

此外,如果我尝试创建新事件,也会遇到此错误。只有刷新页面,我才能在集合中看到新事件

错误 查找事件列表的代码,else下的代码是相关部分 单击“上一步”将触发上述列表函数中的更新 我们决定呈现事件列表的部分 个别活动的模板

{{秒}

{{date}

{{{name}




解决了我的问题。结果表明,该错误与无效的HTML按钮有关

<input type="button", id="previous", value="previous" />
<input type="button", id="next", value="forward" />



简单的解决方法是消除所有逗号。

我有相同的错误,只是多个ID具有相同的值


我没有重复的id,但删除列表元素的
id
属性解决了问题:

错误的HTML:

  {{#each formDatas}}
  <tr class="formDataRow" id="{{_id}}">
     {{#each ../this}}
     <td>{{getData ../this this }}</td>
     {{/each}}
     <td><input id="{{_id}}" class="row-selector" type="checkbox"></td>
  </tr>
  {{/each}}
{{{#每个formDatas}
{{{每个../这个}
{{getData../this}
{{/每个}}
{{/每个}}
不会导致错误的HTML

  {{#each formDatas}}
  <tr class="formDataRow" id="{{_id}}">
     {{#each ../this}}
     <td>{{getData ../this this }}</td>
     {{/each}}
     <td><input class="row-selector" type="checkbox"></td>
  </tr>
  {{/each}}
{{{#每个formDatas}
{{{每个../这个}
{{getData../this}
{{/每个}}
{{/每个}}
注意
输入中缺少的
id
属性

通常不需要
id
属性,因为事件中的
对象引用循环的数据元素

  {{#each list}}
    {{> event}}
  {{/each}}
<template name="event">
  <tr class={{status}}>
    <td>{{seconds}}</td>
    <td><p id="date-{{_id}}" class="date">{{date}}</p></td>
    <td><p id="name-{{_id}}" class="name">{{name}}</p></td>
    <td><input type="button" id="select" value="select" /><br /><br /><input type="button" id="destroy" value="delete" /></td>
  </tr>
 </template>
<input type="button", id="previous", value="previous" />
<input type="button", id="next", value="forward" />
  {{#each formDatas}}
  <tr class="formDataRow" id="{{_id}}">
     {{#each ../this}}
     <td>{{getData ../this this }}</td>
     {{/each}}
     <td><input id="{{_id}}" class="row-selector" type="checkbox"></td>
  </tr>
  {{/each}}
  {{#each formDatas}}
  <tr class="formDataRow" id="{{_id}}">
     {{#each ../this}}
     <td>{{getData ../this this }}</td>
     {{/each}}
     <td><input class="row-selector" type="checkbox"></td>
  </tr>
  {{/each}}