0

我是流星新手,过去几天一直在玩望远镜。昨天,我更新了包。从那时起,我无法在我的 Mac 上运行 Telescope 应用程序。

=> Started proxy.                             
=> Started MongoDB.                           
I20151128-19:27:24.429(8)? Kadira: completed instrumenting the app
W20151128-19:27:24.432(8)? (STDERR) 
W20151128-19:27:24.432(8)? (STDERR) /Users/bala/.meteor/packages/meteor-tool/.1.1.10.jru118++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:245
W20151128-19:27:24.432(8)? (STDERR)                         throw(ex);
W20151128-19:27:24.433(8)? (STDERR)                               ^
W20151128-19:27:24.433(8)? (STDERR) Error: deny: Value for `update` must be a function
W20151128-19:27:24.433(8)? (STDERR)     at packages/mongo/collection.js:755:1
W20151128-19:27:24.433(8)? (STDERR)     at Array.forEach (packages/es5-shim/.npm/package/node_modules/es5-shim/es5-shim.js:417:1)
W20151128-19:27:24.433(8)? (STDERR)     at Function._.each._.forEach (packages/underscore/underscore.js:105:1)
W20151128-19:27:24.433(8)? (STDERR)     at [object Object].addValidator (packages/mongo/collection.js:752:1)
W20151128-19:27:24.433(8)? (STDERR)     at [object Object].Mongo.Collection.deny (packages/mongo/collection.js:804:1)
W20151128-19:27:24.433(8)? (STDERR)     at Posts.getNotificationProperties.properties.postAuthorName (lib/herald.js:7:21)
W20151128-19:27:24.433(8)? (STDERR)     at /Users/bala/meteor/Telescope/.meteor/local/build/programs/server/boot.js:249:5
=> Exited with code: 8
=> Your application is crashing. Waiting for file change.

谁能帮我解决这个问题。

*Herald.js 文件如下

if (Meteor.absoluteUrl().indexOf('localhost') !== -1) 

Herald.settings.queueTimer = 1000; 
Meteor.startup(function () { 

Herald.collection.deny({ update: !Users.can.editById, remove: !Users.can.editById }); 

// disable all email notifications when "emailNotifications" is set to false 

Herald.settings.overrides.email = !Settings.get('emailNotifications', true); });
4

2 回答 2

0

这是最近的 Meteor 1.2 更新的问题。我首先要确保您使用的是所有 Telescope 软件包的最新版本。

于 2015-11-29T07:32:02.973 回答
0

我的流星应用程序出现了类似的错误,解决如下:关闭浏览器,退出终端,重新启动,打开终端,启动应用程序。这是浏览器的东西。

于 2016-01-04T01:18:17.880 回答