Meteor-Community-Packages / meteor-collection2

A Meteor package that extends Mongo.Collection to provide support for specifying a schema and then validating against that schema when inserting and updating.
https://packosphere.com/aldeed/collection2
MIT License
1.02k stars 108 forks source link

strange issue while testing #307

Closed savv closed 8 years ago

savv commented 8 years ago

I get the following error when running meteor test-packages: W20160210-10:08:38.957(1)? (STDERR) The package aldeed:collection2 at 0.1.7 is incompatible with Meteor 0.9.0 or later. W20160210-10:08:38.958(1)? (STDERR) If a new, compatible version of this package exists, running 'meteor update' should cause you to update.

Meanwhile, my versions file seems to be fine: aldeed:collection2@2.8.0 aldeed:collection2-core@1.0.0

This is preventing my tests from passing. Any thoughts on how to address?

Thank you -Chris

savv commented 8 years ago

Btw, the problem I'm seeing in the tests is this:

TypeError: Object [object Object] has no method 'attachSchema' at initUserCollection (user.js:49:8) at ArianaMain.init (main.js:14:5)

(which could also be because of a missing dependency, although I triple checked.)

savv commented 8 years ago

meteor show --show-all aldeed:collection2 confirms this:

0.1.7 August 5th, 2014 installed 2.8.0 December 30th, 2015 installed

savv commented 8 years ago

adding an explicit dep to collection2@2.8.0 fixes this