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"         }     } 

enter image description here

gives me error cannot find module, module exists have checked it.

how solve this?

i used following code & worked :-

config = require('../config/config'); 

Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -