Node.js is not a constructor

When you assigned this:

exports.HttpHandlers = HttpHandlers;

You would need to match that with this:

var HttpHandlers = require('../lib/restifyHandlers/HttpHandlers').HttpHandlers;

You are assigning a property of your module to be .HttpHandlers, not assigning the whole module so if you want that property, you have to reference the property. If you want it to work the other way, you could change to this:

exports = HttpHandlers;

And, then your require() could work the way you are doing it like this:

var HttpHandlers = require('../lib/restifyHandlers/HttpHandlers');

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)