Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PugAdapter not available for '@nestjs-modules/mailer' #5

Closed
Emex4gman opened this issue Jun 13, 2020 · 3 comments
Closed

PugAdapter not available for '@nestjs-modules/mailer' #5

Emex4gman opened this issue Jun 13, 2020 · 3 comments
Labels
good first issue Good for newcomers

Comments

@Emex4gman
Copy link

I tried to use the PugAdapter from '@nestjs-modules/mailer',

But I get this error

Module '"../node_modules/@nestjs-modules/mailer"' has no exported member 'PugAdapter'.

@Emex4gman
Copy link
Author

To use PugAdapter use

import { PugAdapter } from '@nestjs-modules/mailer/dist/adapters/pug.adapter';

https://nest-modules.github.io/mailer/docs/mailer.html

@yanarp yanarp added the good first issue Good for newcomers label Jun 13, 2020
@matheus-vieira
Copy link

matheus-vieira commented Jun 24, 2020

I tried to use the HandlebarsAdapter from '@nestjs-modules/mailer',

But I get this error

Module '"../node_modules/@nestjs-modules/mailer"' has no exported member 'HandlebarsAdapter'.

To resolve I used

import { HandlebarsAdapter } from '@nestjs-modules/mailer/dist/adapters/handlebars.adapter';

Would be more cleaner to user some like, if possible:

import { HandlebarsAdapter } from '@nestjs-modules/mailer/adapter';

or even, if the plugins is available

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

@Emex4gman
Copy link
Author

I tried to use the HandlebarsAdapter from '@nestjs-modules/mailer',

But I get this error

Module '"../node_modules/@nestjs-modules/mailer"' has no exported member 'HandlebarsAdapter'.

To resolve I used

import { HandlebarsAdapter } from '@nestjs-modules/mailer/dist/adapters/handlebars.adapter';

Would be more cleaner to user some like, if possible:

import { HandlebarsAdapter } from '@nestjs-modules/mailer/adapter';

or even, if the plugins is available

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

Sadly you have to dive deeper to each adapter. But you right though. It would be cleaner to use that approach

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants