nest-modules / mailer

📨 A mailer module for Nest framework (node.js)
https://nest-modules.github.io/mailer/
MIT License
846 stars 177 forks source link

cannot find name 'HandlebarsAdapter' #525

Closed eric-sison closed 10 months ago

eric-sison commented 3 years ago

I am unable to use handlebars for sending email with templates.

My code snippet:

`import {MailerModule, HandlebarsAdapter} from '@nestjs-modules/mailer';

@Module({ imports: [ MailerModule.forRootAsync({ useFactory: () => ({ transport: { name: process.env.EMAIL_DOMAIN, host: process.env.SMTP_HOST, port: process.env.SMTP_PORT, secure: true, auth: { user: process.env.USER_EMAIL, pass: process.env.USER_PASS, }, template: { dir: process.cwd() + '/template/', adapter: new HandlebarsAdapter(), // or new PugAdapter() options: { strict: true, }, }, }, }), }), ] }) `

in my package.json: "@nestjs-modules/mailer": "^1.5.1", "handlebars": "^4.7.7", "nodemailer": "^6.4.18",

stvvt commented 3 years ago

See https://github.com/nest-modules/mailer/issues/206