vsivsi / meteor-file-collection

Extends Meteor Collections to handle file data using MongoDB gridFS.
http://atmospherejs.com/vsivsi/file-collection
Other
159 stars 37 forks source link

gridFS_client.coffee:16 Uncaught Error: #101

Open Hilmarj opened 8 years ago

Hilmarj commented 8 years ago

Hi

I am trying to use your package in my project. I took your example code and put it in my project. But i allways get this error:

"gridFS_client.coffee:16 Uncaught Error: [The global definition of Mongo.Collection has changed since the file-collection package was loaded. Please ensure that any packages that redefine Mongo.Collection are loaded before file-collection.]"

i am using this packages:

meteor-base # Packages every Meteor app needs to have mobile-experience # Packages for a great mobile UX mongo # The database Meteor supports right now session # Client-side reactive dictionary for your app jquery # Helpful client-side library tracker # Meteor's client-side reactive programming library es5-shim # ECMAScript 5 compatibility for older browsers. angular twbs:bootstrap angularui:angular-ui-router accounts-password angularutils:pagination angularui:angular-ui-bootstrap dotansimha:accounts-ui-angular tmeasday:publish-counts check email less tsega:bootstrap3-datetimepicker alanning:roles froala:editor aldeed:simple-schema aldeed:collection2 mizzao:bootboxjs
anti:i18n standard-minifier-css standard-minifier-js vsivsi:file-collection

Can you please help my along

vsivsi commented 8 years ago

You can try this package to help figure out which packages are messing with your Meteor object:

https://github.com/vsivsi/meteor-defender

Hilmarj commented 8 years ago

Does this tell me that it's angular that is messing with my Meteor object

angular_angular.js?hash=08f63d2…:13439 Error: ## Meteor function: Meteor.Collection has been modified! at Object.Defender.check (vsivsi_defender.js:90) at new controller (quality-document-details.component.js:16) at Object.invoke (angular_angular.js?hash=08f63d2…:4640) at $controllerInit (angular_angular.js?hash=08f63d2…:10042) at nodeLinkFn (angular_angular.js?hash=08f63d2…:8980) at angular_angular.js?hash=08f63d2…:9377 at processQueue (angular_angular.js?hash=08f63d2…:15772) at angular_angular.js?hash=08f63d2…:15788 at Scope.$eval (angular_angular.js?hash=08f63d2…:17040) at Scope.$digest (angular_angular.js?hash=08f63d2…:16856)(anonymous function) @ angular_angular.js?hash=08f63d2…:13439(anonymous function) @ angular_angular.js?hash=08f63d2…:10152processQueue @ angular_angular.js?hash=08f63d2…:15780(anonymous function) @ angular_angular.js?hash=08f63d2…:15788Scope.$eval @ angular_angular.js?hash=08f63d2…:17040Scope.$digest @ angular_angular.js?hash=08f63d2…:16856Scope.$apply @ angular_angular.js?hash=08f63d2…:17148bootstrapApply @ angular_angular.js?hash=08f63d2…:1728invoke @ angular_angular.js?hash=08f63d2…:4640doBootstrap @ angular_angular.js?hash=08f63d2…:1726bootstrap @ angular_angular.js?hash=08f63d2…:1746angularInit @ angular_angular.js?hash=08f63d2…:1631(anonymous function) @ angular_angular.js?hash=08f63d2…:30724fire @ jquery.js:3143self.fireWith @ jquery.js:3255jQuery.extend.ready @ jquery.js:3467completed @ jquery.js:3498

vsivsi commented 8 years ago

I highly doubt it's angular. But it's impossible for me to tell just from a stack trace like that.

vsivsi commented 8 years ago

Looking at your list, it seems likely to be collection2 or simple schema.