Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

414
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda