irtazabbas

Results comments of irtazabbas

Without going into too much details, I worked around this by doing what the error's details suggested. Code that was erring out is: ``` import * as Modules from './modules';...

With the option `-aot`, I had to remove the dynamic references, meaning I had to explicitly import or declare components and modules, so that it can be analyzed statically. It...

version `0.8.0` ``` connectionString = 'mongodb://username:passwordi@*********************@ds019680-a0.mlab.com:19680,ds019680-a1.mlab.com:19680/dbname'; var agenda = new Agenda({db: {address: connectionString}}); //tried with //agenda.database(connectionString); //var agenda = new Agenda({db: {address: connectionString, collection: 'myJobs'}}); ``` P.S. same connection string...

here is the error ``` node_modules/agenda/node_modules/mongodb/lib/server.js:228 process.nextTick(function() { throw err; }) ^ Error: getaddrinfo ENOTFOUND dbname dbname:27017 at errnoException (dns.js:26:10) at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:77:26) ```

inserted `console.log('agenda url: ', url)` [here](https://github.com/rschmukler/agenda/blob/master/lib/agenda.js#L77) and got ``` agenda url: mongodb://user:password@*********************@ds019680-a0.mlab.com:19680,ds019680-a1.mlab.com:19680/dbname ``` got the same error as above. And yes the same connection string works with mongoose.

@loris Thanks. So that url format was supported by mongoose but not by `mongodb` which uses `url.parse()` that throws the exception. So the format below worked. Thanks. ``` var connectionString...