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

185
Views
Rechazo no controlado (TypeError): no se pueden leer las propiedades de la versión 9 no definida (leyendo 'onSnapshot')

En mi App.js

 componentDidMount() { this.authListerner = auth.onAuthStateChanged(async userAuth => { if (userAuth){ const userRef = await handleUserProfile(userAuth); userRef.onSnapshot(snapshot => { this.setState({ currentUser: { id: snapshot.id, ...snapshot.data(), } }) }) } this.setState({ ...initialState }); }); }

Mi utilis.js

 export const handleUserProfile = async ({userAuth, additionalData = {}}) => { if (!userAuth) { console.warn("No userAuth provided!"); return; } const { uid } = userAuth; const userRef = doc(collection(firestore, `users/${uid}`)); const snapshot = await userRef.get(); if (!snapshot.exists) { const { displayName, email } = userAuth; const timestamp = new Date(); try { await userRef.setDoc(firestore, { displayName, email, createdDate: timestamp, ...additionalData, }) } catch(err) { console.warn(err); } } return userRef; }; 

el problema al que me enfrento

Puede alguien ayudarme con esto. No puedo hacer que se ejecute. Estoy usando firebase web versión 9. que intento usar un simple de la versión 8

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!