auth: {
user: 'process.env.REACT_APP_EMAIL',
pass: 'process.env.REACT_APP_PASS'
}
console.log(process.env.REACT_APP_EMAIL)
,то выдает undefinedrequire('dotenv').config()
{
"name": "back",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "node index.js",
"server": "nodemon index.js",
"flt": "npm run start --prefix flt",
"dev": "concurrently \"npm run server\" \"npm run flt\""
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"body-parser": "^1.19.0",
"concurrently": "^4.1.0",
"dotenv": "^8.0.0",
"express": "^4.17.1",
"nodemailer": "^6.2.1",
"nodemon": "^1.19.1",
"react-addons-css-transition-group": "^15.6.2",
"react-transition-group": "^4.1.0"
}
}