Skip to content
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

Module resolution error when using @getbrevo/brevo in Next.js project #38

Open
kevod1997 opened this issue Oct 16, 2024 · 2 comments
Open

Comments

@kevod1997
Copy link

I'm experiencing an issue when trying to use the @getbrevo/brevo package in a Next.js (14.2.15) project. The error occurs during the build process and seems to be related to how the package is resolving its internal dependencies.

Error Message:
./node_modules/@getbrevo/brevo/src/index.js
Module not found: Can't resolve 'ApiClient'
Did you mean './ApiClient'?
Requests that should resolve in the current directory need to start with './'.
Requests that start with a name are treated as module requests and resolve within module directories (node_modules).

@bgfborges
Copy link

Same here, any new?

@sungbin-hub
Copy link

if you use "@getbrevo/brevo": "^2.2.0", you may follow "Typescript supported with version v2.1.1" in READ.ME
i think "ApiClient " is for old version

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

No branches or pull requests

3 participants