Last active
August 29, 2015 14:18
-
-
Save brlafreniere/4140a20cd92f5a545b66 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In `meteor shell`: | |
> new Mongo.Collection("messages") | |
Error: A method named '/messages/insert' is already defined | |
at packages/ddp/livedata_server.js:1461:1 | |
at Function._.each._.forEach (packages/underscore/underscore.js:113:1) | |
at [object Object]._.extend.methods (packages/ddp/livedata_server.js:1459:1) | |
at [object Object].Mongo.Collection._defineMutationMethods (packages/mongo/collection.js:904:1) | |
at new Mongo.Collection (packages/mongo/collection.js:209:1) | |
at [object Object].ns.Collection (packages/lai:collection-extensions/collection-extensions.js:71:1) | |
at repl:1:2 | |
at /home/blaine/webchat_meteor/.meteor/local/build/programs/server/shell-server.js:243:23 | |
> Messages | |
ReferenceError: Messages is not defined | |
at repl:1:2 | |
at /home/blaine/webchat_meteor/.meteor/local/build/programs/server/shell-server.js:243:23 | |
// Line 1 in my app: | |
var Messages = new Mongo.Collection("messages"); | |
// App works, shell doesn't. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment