mailjet / mailjet-apiv3-nodejs

[API v3] Official Mailjet API v3 NodeJS wrapper
https://dev.mailjet.com
MIT License
236 stars 69 forks source link

TypeError: Cannot create property 'mailer' on string 'host' Nest JS Service with Injectable #260

Closed theofrgs closed 1 year ago

theofrgs commented 1 year ago

Hello, I try to create a nest js service to use mailer API, when I try to build my service I've got this error: TypeError: Cannot create property 'mailer' on string 'host'

` private mailjet: Client;

constructor() {
    this.mailjet = new Client({
        apiKey: "",
        apiSecret: "",
    });
}

`

theofrgs commented 1 year ago

Error from my side