Meteor 流星火焰混合体未注册

Meteor 流星火焰混合体未注册,meteor,meteor-blaze,Meteor,Meteor Blaze,我在一个包中创建了一些定制的Blaze组件,并将一些共享功能提炼成一个mixin。但是,由于某些原因,我的mixin未被识别,我看到如下错误: Exception from Tracker recompute function: debug.js:41 Error: Must be attached at DOMRange.firstNode (domrange.js:191) at Template.constructView.view.templateInstance (te

我在一个包中创建了一些定制的Blaze组件,并将一些共享功能提炼成一个mixin。但是,由于某些原因,我的mixin未被识别,我看到如下错误:

Exception from Tracker recompute function:
debug.js:41 Error: Must be attached
    at DOMRange.firstNode (domrange.js:191)
    at Template.constructView.view.templateInstance (template.js:168)
    at templateInstanceToComponent (lib.coffee:12)
    at lib.coffee:104
    at Object.Tracker.nonreactive (tracker.js:560)
    at Object.Blaze._getTemplateHelper (lib.coffee:103)
    at Blaze.View.lookup (lookup.js:104)
    at template.nav.js?4fba4334a27ad5d54a92350b0b1bb6bbd979ceb3:21
    at null.<anonymous> (builtins.js:49)
    at view.js:191
input.js
中:

var InputMixin = BlazeComponent.extendComponent({
  foo: function() {
    // A helper
  }
});
var InputComponent = BlazeComponent.extendComponent({
  mixins: function() {
    return [InputMixin];
  }
}).register('InputComponent');
Package.onUse(function(api) {
  api.addFiles([
    'lib/client/mixins.js',
    'lib/client/input.js',
  );
});
在我的
packages.js
中:

var InputMixin = BlazeComponent.extendComponent({
  foo: function() {
    // A helper
  }
});
var InputComponent = BlazeComponent.extendComponent({
  mixins: function() {
    return [InputMixin];
  }
}).register('InputComponent');
Package.onUse(function(api) {
  api.addFiles([
    'lib/client/mixins.js',
    'lib/client/input.js',
  );
});

不知道如何处理这个问题。非常感谢您的见解。

您能提供一个可复制的代码吗?您确定使用的是Blaze Components的最新版本吗?能否提供可复制的代码?您确定使用的是最新版本的Blaze组件吗?