Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

413
Vistas
Getting Module not found: Can't resolve 'fs' error while sending confirmation email to email address

I am trying to send confirmation mail after signing up with email password with firebase and next.js . I am new to both next.js & firebase so I'm having some difficulties.

The problem is, I am getting a confirmation mail in my email but before I confirm and redirect to the page , it's automatically redirecting to the homepage. So ultimately there is no point of mail confirmation.

I think somehow the emailVerified is always true which I need to stop. I have tried with this block of code but not working.

const res = await createUserWithEmailAndPassword(auth, email, password);
        if (res.user) {
            firebaseAdmin.auth().updateUser(res.user.uid, { emailVerified: false });
            sendEmailVerification(res.user);
            router.push('/');
        }

This is the error I am getting:

./node_modules/@google-cloud/storage/build/src/bucket.js:22:0
Module not found: Can't resolve 'fs'

When I remove firebaseAdmin.auth().updateUser(res.user.uid, { emailVerified: false }); this line, then the error is solved but then I am not getting any confirmation mail.

Can anyone please help with this?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda