javascript - Error - Cannot find module 'config' -
i have mail configuration code in all.js
.
now trying import in mail.js
service, imported config
module follows :-
mail.js
config = require('config'),
all.js
mailer: { auth: { user: "xxxxxxx", pass: "abc@123" } }
gives me error cannot find module, module exists have checked it.
how solve this?
i used following code & worked :-
config = require('../config/config');
Comments
Post a Comment