Meteor 0.9.1, Mongo is not defined inside my custom package

Getting Mongo exception not defined inside my own package

CODE

ABC = new Mongo.Collection('ABC');

      

Mistake

W20140905-17:49:06.809(5.5)? (STDERR) /home/sandeep/.meteor/packages/meteor-tool/.1.0.27.18sl1cs++os.linux.x86_32+web.browser+web.cordova/meteor-tool-os.linux.x86_32/dev_bundle/lib/node_modules/fibers/future.js:173
W20140905-17:49:06.809(5.5)? (STDERR)                       throw(ex);
W20140905-17:49:06.810(5.5)? (STDERR)                             ^
W20140905-17:49:06.810(5.5)? (STDERR) ReferenceError: Mongo is not defined

      

+3


source to share


2 answers


You need to list all packages you are using in the file package.js

:



Package.onUse(function (api) {
  api.use('mongo', ['client', 'server']);
  ...
});

      

+17


source


Also check that you have space on your HD, that was my problem.



0


source







All Articles