I'm trying to include modules in my nodejs application. The problem I'm facing is the code snippet below:
let adapter = new Adapter().then(function(result){
let test= require('./loader');
console.log(test);
}).catch(function(){});
Results always returned
{}
File loader.js
module.exports = {
load_controller: () =>
{
}
};
Pls help me ^^
via diepnghitinh
No comments:
Post a Comment