I am in the process of developing a package that aligns with the guidelines in the Discover Meteor book. You can find more information about this process in the following link:
Below is a snippet of my package.js
file:
api.use(['email1','email2','email3','email4'],'client',{ unordered: true });
Additionally, here is an excerpt from my errors.js file:
Errors = {
collection: new Mongo.Collection(null),
...
}
Despite implementing the above configurations, I encountered the following error:
W20150206-21:52:14.453(-5)? (STDERR)
W20150206-21:52:14.454(-5)? (STDERR) /Users/Diego/.meteor/packages/meteor-tool/.1.0.40.959pzb++os.os.x86_64+web.browser+web.cordova/meteor-tool-os.os.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:173
W20150206-21:52:14.454(-5)? (STDERR) throw(ex);
W20150206-21:52:14.454(-5)? (STDERR) ^
W20150206-21:52:14.456(-5)? (STDERR) ReferenceError: Mongo is not defined
W20150206-21:52:14.456(-5)? (STDERR) at Package (packages/diegoferreyra:errors/errors.js:2:1)
W20150206-21:52:14.456(-5)? (STDERR) at /Users/Diego/Documents/htdocs/microscope/.meteor/local/build/programs/server/packages/diegoferreyra_errors.js:26:4
W20150206-21:52:14.456(-5)? (STDERR) at /Users/Diego/Documents/htdocs/microscope/.meteor/local/build/programs/server/packages/diegoferreyra_errors.js:35:3
W20150206-21:52:14.456(-5)? (STDERR) at /Users/Diego/Documents/htdocs/microscope/.meteor/local/build/programs/server/boot.js:205:10
W20150206-21:52:14.456(-5)? (STDERR) at Array.forEach (native)
W20150206-21:52:14.456(-5)? (STDERR) at Function._.each._.forEach (/Users/Diego/.meteor/packages/meteor-tool/.1.0.40.959pzb++os.os.x86_64+web.browser+web.cordova/meteor-tool-os.os.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20150206-21:52:14.456(-5)? (STDERR) at /Users/Diego/Documents/htdocs/microscope/.meteor/local/build/programs/server/boot.js:116:5
I have already looked into a similar issue discussed in this post: meteor 0.9.1 , Mongo is not defined inside my custom Package
Unfortunately, despite including Mongo in the array, the problem persists.