We provide complete mobile and web apps development solutions

Monday, September 7, 2015

TypeError: Cannot read property 'DEFAULT_PORT' of undefined

TypeError: Cannot read property 'DEFAULT_PORT' of undefined

This issue is due to running with Default port instead of '27017'.

Change from 

module.exports = new Db(settings.db, new Server(settings.host, Connection.DEFAULT_PORT), {safe: true});


To


module.exports = new Db(settings.db, new Server(settings.host, '27017'), {safe: true});



0 coment�rios:

Post a Comment

Online Training

Your Name :
Your Email: (required)
Your Message: (required)

Powered by Blogger.

Recent Posts

Find Us On Facebook

Popular Posts