Rapidfacture / mongoose-multi

NPM Module: Create Mongoose connections to severals DBs; short, mongoDB like syntax for requests.
12 stars 4 forks source link

TypeError: Cannot read property 'application' of undefined #11

Closed harishmahajan closed 5 years ago

harishmahajan commented 5 years ago

I am trying to run mongoose-multi\example\production this example then i am getting below error

D:\Demos\multimongoose1>node example.js
D:\Demos\multimongoose1\node_modules\mongoose-multi\index.js:85 startConnection(conName, url, schemaFile[conName], options);

^ TypeError: Cannot read property 'application' of undefined at Object.module.exports.start (D:\Demos\multimongoose1\node_modules\mongoose-multi\index.js:85:47) at Object.<anonymous> (D:\Demos\multimongoose1\example.js:20:24) at Module._compile (internal/modules/cjs/loader.js:688:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10) at Module.load (internal/modules/cjs/loader.js:598:32) at tryModuleLoad (internal/modules/cjs/loader.js:537:12) at Function.Module._load (internal/modules/cjs/loader.js:529:3) at Function.Module.runMain (internal/modules/cjs/loader.js:741:12) at startup (internal/bootstrap/node.js:285:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)

FelixFurtmayr commented 5 years ago

Thanks for the info. The examples were not up to date. I updated them now.

FelixFurtmayr commented 5 years ago

Closing the issue, as this should be fixed.