not able to build in a typescript project
Opened this issue · 1 comments
quantuminformation commented
Could not find a declaration file for module 'nodemailer'. '/Users/nikos/functions/node_modules/nodemailer/lib/nodemailer.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/nodemailer` if it exists or add a new declaration (.d.ts) file containing `declare module 'nodemailer';`
1 import { Transporter, createTransport } from "nodemailer"
szamanr commented
install @types/nodemailer
:
# if you use https://github.com/antfu-collective/ni
ni -D @types/nodemailer
# or
yarn -D @types/nodemailer
npm -D @types/nodemailer
# ... etc. depending on your package manager