0
我的流星項目存在問題。我沒有在一段時間內工作,更新和運行後,我得到了這個。流星問題TypeError:無法調用未定義的方法'刪除'
=> Exited with code: 8
W20140306-15:04:49.602(-8)? (STDERR)
W20140306-15:04:49.603(-8)? (STDERR) /Users/goddard/.meteor/tools/f3947a4651/lib/node_modules/fibers/future.js:173
W20140306-15:04:49.604(-8)? (STDERR) throw(ex);
W20140306-15:04:49.604(-8)? (STDERR) ^
W20140306-15:04:49.607(-8)? (STDERR) TypeError: Cannot call method 'remove' of undefined
W20140306-15:04:49.608(-8)? (STDERR) at app/server/collections/settings.js:3:36
W20140306-15:04:49.608(-8)? (STDERR) at app/server/collections/settings.js:26:3
W20140306-15:04:49.608(-8)? (STDERR) at /Users/goddard/Projects/meteortest/.meteor/local/build/programs/server/boot.js:155:10
W20140306-15:04:49.608(-8)? (STDERR) at Array.forEach (native)
W20140306-15:04:49.609(-8)? (STDERR) at Function._.each._.forEach (/Users/goddard/.meteor/tools/f3947a4651/lib/node_modules/underscore/underscore.js:79:11)
W20140306-15:04:49.609(-8)? (STDERR) at /Users/goddard/Projects/meteortest/.meteor/local/build/programs/server/boot.js:82:5
我也用隕石來運行這個項目。
聽起來像你的代碼給我的問題。 –
很難說,如果沒有看到'settings.js'的內容,但我會猜測:你正在調用'remove',這個集合在'remove'被調用時沒有定義。選項包括:在'/ lib'下移動你的集合定義或者在[startup](http://docs.meteor.com/#meteor_startup)函數中調用'remove'。 –
您是否檢查過連接,以瞭解如何在package.json中指定相關性?這可能是因爲你依賴的模塊在最近的版本中發生了突破性的界面更改。如果你的package.json的模塊版本規範允許更新這個(假設的)更新版本,但是你的代碼(或者你依賴的另一個模塊的版本)假定在舊界面上,你可以很容易地運行進入這種情況。我不時看到這一點。 – prattsj