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 read properties of undefined (reading 'apiConnect') #239

Closed KoesterJannik closed 1 year ago

KoesterJannik commented 1 year ago

`import Mailjet from 'node-mailjet'; const API_KEY = 'mysecret'; const SECRET_KEY = 'mysecret';

const mailjet = Mailjet.apiConnect(API_KEY, SECRET_KEY); console.log('mailjet: ', mailjet);

export default mailjet; ` Im using version ^6.0.2 and "@types/node-mailjet": "^3.3.9", I even get proper typescript support and i can see the static apiConnect Method.

Any idea whats wrong here?

KoesterJannik commented 1 year ago

found the typescript part in your readme. closed

Raduc4 commented 1 month ago

@KoesterJannik how did you solve this?