Meteor-Community-Packages / meteor-collection-hooks

Meteor Collection Hooks
https://atmospherejs.com/matb33/collection-hooks
MIT License
657 stars 92 forks source link

TypeError: Cannot call method insert of undefined #56

Closed boustanihani closed 10 years ago

boustanihani commented 10 years ago

I am getting => TypeError: Cannot call method 'insert' of undefined

IMAGES = new Meteor.Collection('images');

IMAGES.before.insert(function(userId, doc) {
    //...
});

I am using Meteor 0.8.3 and the packages Autoform, Collection2 & SimpleSchema... Does this package conflict with the mentioned above ??

boustanihani commented 10 years ago

Never mind :) my projectdirectory/.meteor/packages file was missing the "meteor-collection-hooks" package, I don't know why it was not updated by mrt ?!

maxnowack commented 9 years ago

In my case it was related to #62