mailjet / mailjet-apiv3-nodejs

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

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

Closed theofrgs closed 9 months ago

theofrgs commented 9 months 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 9 months ago

Error from my side