Skip to content

Update README.md #37

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update README.md #37

wants to merge 1 commit into from

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