Vaughn Iverson
Vaughn Iverson
Hi, I think you'll find that cursors and observes work the same with file-collection as they do with ordinary Meteor collections. Publish/subscribe and client-side reactivity also work fine. I recommend...
You can try this package to help figure out which packages are messing with your Meteor object: https://github.com/vsivsi/meteor-defender
I highly doubt it's angular. But it's impossible for me to tell just from a stack trace like that.
Looking at your list, it seems likely to be collection2 or simple schema.
Hi, yes this is expected. collection-hooks has a bug in how it monkey patches `Mongo.Collection`. Please do as the error says and: > See https://github.com/vsivsi/meteor-file-sample-app/issues/2#issuecomment-120780592 for a workaround
``` js Mongo.Collection.prototype.constructor = Mongo.Collection; ```
`matb33:collection-hooks` replaces `Mongo.Collection` which is supplied by Meteor. This causes many potential problems... One of them is that it is buggy in how it does this in that it doesn't...
There's a PR on collection-hooks to fix this, but it hasn't been acted on, here: https://github.com/matb33/meteor-collection-hooks/pull/139
I'm reopening this until resolved by `matb33:collection-hooks`
You need to ensure that the collection hooks package (and any other package that replaces Mongo.Collection) loads before file-collection.