Hello i try to make a executable version of my project Mean.JS (http://meanjs.org/) but i have a problem with the exports of MongoDB and Consolidate, i make a screenshot of this situation.
So there are two issues i have to resolve.
I have refactorize the require in MongoDB, the Enclose need a explicit path and here its loaded dynamically, but there are many methods...and really its no the only module i have this problem.
And for other side in the exportation of modules in Consolidate give the error "Cannot find module -name module- from path/consolidate/name_module", and when i check the "node-modules" of Consolidate, its empty. I dont know why...
Hello i try to make a executable version of my project Mean.JS (http://meanjs.org/) but i have a problem with the exports of MongoDB and Consolidate, i make a screenshot of this situation.
So there are two issues i have to resolve.
[ 'commands/base_command' , 'admin' , 'collection' , 'connection/read_preference' , 'connection/connection' , 'connection/server' , 'connection/mongos' , 'connection/repl_set/repl_set' , 'mongo_client' , 'cursor' , 'db' , 'mongo_client' , 'gridfs/grid' , 'gridfs/chunk' , 'gridfs/gridstore'].forEach(function (path) { var module = require('./' + path); for (var i in module) { exports[i] = module[i]; console.log(exports[i]); } });