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

528
Views
how do I solve : Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore]

I'm trying to create this registration page using Firestore however while my app runs, I receive the following error and my Firestore does not get updated while my firebase does. I'm thinking it has to do something with my firebase.js as that where I invoked the method "doc". my codes is as follows

enter image description here

enter image description here

please help to advice how I can go about solving the problem as I am quite new to Javascript and Firestone. Thank you!

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!