Skip to content

Conversation

@ugoi
Copy link

@ugoi ugoi commented Oct 1, 2024

No description provided.

@ugoi ugoi requested a review from aayush-sib as a code owner October 1, 2024 23:22
@jeer00
Copy link

jeer00 commented Oct 8, 2024

I couldnt figure out if i where to open an issue or reply here, but since this PR is about the ts-example:

The types dont seem to work when using require? And when instead using an es6 import, the types work, but then it just returns typeerror:

TypeError: Cannot read properties of undefined (reading 'TransactionalEmailsApi')
This was solved by awaiting the import:
const brevo = await import('@getbrevo/brevo');

So, would it be reasonable to update the readme with es6 imports?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants