Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error trying to use the package #23

Open
rafaelfaria opened this issue Jan 20, 2015 · 1 comment
Open

Error trying to use the package #23

rafaelfaria opened this issue Jan 20, 2015 · 1 comment

Comments

@rafaelfaria
Copy link

I'm getting the following error when i try to do

Posts = new Mongo.Collection("posts");
Posts.timestampable();
W20150121-10:04:05.296(11)? (STDERR)
W20150121-10:04:05.297(11)? (STDERR) /Users/rcardoso/.meteor/packages/meteor-tool/.1.0.38.z83ibe++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:173
W20150121-10:04:05.297(11)? (STDERR)                        throw(ex);
W20150121-10:04:05.297(11)? (STDERR)                              ^
W20150121-10:04:05.298(11)? (STDERR) TypeError: Object [object Object] has no method 'timestampable'
W20150121-10:04:05.298(11)? (STDERR)     at app/lib/collections.js:8:7
W20150121-10:04:05.298(11)? (STDERR)     at app/lib/collections.js:20:3
W20150121-10:04:05.298(11)? (STDERR)     at /Users/rcardoso/Sites/mine/inutil/.meteor/local/build/programs/server/boot.js:175:10
W20150121-10:04:05.298(11)? (STDERR)     at Array.forEach (native)
W20150121-10:04:05.298(11)? (STDERR)     at Function._.each._.forEach (/Users/rcardoso/.meteor/packages/meteor-tool/.1.0.38.z83ibe++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20150121-10:04:05.298(11)? (STDERR)     at /Users/rcardoso/Sites/mine/inutil/.meteor/local/build/programs/server/boot.js:86:5

What am I doing wrong?

@taromero
Copy link

taromero commented Feb 2, 2015

See #20. Basically, you have to call CollectionBehaviours.extendCollectionInstance {{your_collection}}.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants