Meteor <Object>没有方法'subscribe'.关于最新的流星更新

EB-*_*atx 1 javascript meteor

即使在我成功升级到最新的流星之后,我仍然会收到此错误.有人可以帮忙吗?

W20141002-17:08:01.669(-5)? (STDERR) 
W20141002-17:08:01.841(-5)? (STDERR) /Users/erikbigelow/.meteor/packages/meteor-tool/.1.0.33.kundj5++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/lib/node_modules/fibers/future.js:173
W20141002-17:08:01.842(-5)? (STDERR)                        throw(ex);
W20141002-17:08:01.842(-5)? (STDERR)                              ^
W20141002-17:08:01.843(-5)? (STDERR) TypeError: Object #<Object> has no method 'subscribe'
W20141002-17:08:01.843(-5)? (STDERR)     at app/main.js:1:43
W20141002-17:08:01.843(-5)? (STDERR)     at app/main.js:3:3
W20141002-17:08:01.844(-5)? (STDERR)     at /Users/erikbigelow/Sites/scenewith/.meteor/local/build/programs/server/boot.js:168:10
W20141002-17:08:01.844(-5)? (STDERR)     at Array.forEach (native)
W20141002-17:08:01.845(-5)? (STDERR)     at Function._.each._.forEach (/Users/erikbigelow/.meteor/packages/meteor-tool/.1.0.33.kundj5++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/lib/node_modules/underscore/underscore.js:79:11)
W20141002-17:08:01.845(-5)? (STDERR)     at /Users/erikbigelow/Sites/scenewith/.meteor/local/build/programs/server/boot.js:82:5
=> Exited with code: 8
Run Code Online (Sandbox Code Playgroud)

这是我删除自动发布后直接添加的

服务器/ publications.js:

Meteor.publish('scenes', function() {
    return Scenes.find();
});
Run Code Online (Sandbox Code Playgroud)

main.js

Meteor.subscribe('scenes');
Run Code Online (Sandbox Code Playgroud)

收藏/ scenes.js

Scenes = new Meteor.Collection('scenes');
Run Code Online (Sandbox Code Playgroud)

ric*_*ilv 6

从日志中看起来你正试图Meteor.subscribe在服务器上调用,或者至少不是在客户端上调用.

您的电话必须是无论是在客户端文件夹,或在一个Meteor.isClient块,因为它是一个客户端的唯一方法,所以它不会被连接到服务器上的流星对象.