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

"TypeError: Cannot read properties of undefined (reading 'apiConnect')" #287

Open
rithik20 opened this issue Jan 30, 2025 · 0 comments
Open

Comments

@rithik20
Copy link

import Mailjet from 'node-mailjet';
import { SendOtpUtils } from './abstract_service/send_otp_utils';

export class SendEmailOtpUtils implements SendOtpUtils {
  async sendOtp(email: string, otp: number) {
    const mailjetClient = Mailjet.apiConnect(
      process.env.EMAIL_API_KEY,
      process.env.EMAIL_SECRET_KEY,
    );
   .
   .
   .
  }
}

I'm facing an exception "TypeError: Cannot read properties of undefined (reading 'apiConnect')"

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

1 participant