Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

416
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!