Replies: 1 comment
-
currently, i can not reproduce (i have it successfully deployed in a nextjs application) the error is coming from this line: https://github.com/eleith/emailjs/blob/main/email.js#L270 this is a builtin nodejs module, thus, the error suggests that nextjs is trying to embed your email setup logic for browser execution (since that is what they use webpack for, to bundle code for the browser, and this error is coming from nextjs use of webpack) make sure all email logic is exclusively accessible by only the API route and not any nextjs pages |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I ran into an issue when implementing emailjs SMTPClient in a NextJs server side api.
the error:
TypeError: util__WEBPACK_IMPORTED_MODULE_3__.TextEncoder is not a constructor
implementation:
api endpoint call:
call stack extract:
i want to release this feature to my client as soon as possible. please let me know if it`s something on my side, or more info needed. Also if no possibility of fixing it, so I look for an alternative solution.
Best regards,
Peter
Beta Was this translation helpful? Give feedback.
All reactions