即使我成功升级到最新的流星后,我仍然会收到此错误。谁能帮忙?流星<Object>没有方法'订阅'。关于最新的流星更新
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
这是直接后我除去自动发布,并加入以下
服务器/ publications.js:
Meteor.publish('scenes', function() {
return Scenes.find();
});
main.js
Meteor.subscribe('scenes');
集合/scenes.js
Scenes = new Meteor.Collection('scenes');
UGH!你是对的,它在我的客户端文件夹之外,我没有看到。 – 2014-10-03 00:21:23