Hello,
I've used your example before with Angular 5, but I am now using it again with Angular 6 (using reactive forms) and your updated code and libraries.
I keep getting this error via firebase functions:
28:3 warning Arrow function expected no return value consistent-return
It is in reference to this line of code:
return mailTransport.sendMail(mailOptions).then(() => { return console.log('Mail sent'); //The log will be shown in Firebase. });
I noticed since you later return a promise, you need to return a value here a swell. e.g. false, but I tried doing this, but it still does not work:
if (change.before.val() || !dataAfterChange.name) { return false; }