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

333
Vistas
passing and reading data from firebase firestore

the error:

autofillContentScript.bundle.js:23 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'includes') at autofillContentScript.bundle.js:23:256161 at p (autofillContentScript.bundle.js:23:4111) at Generator._invoke (autofillContentScript.bundle.js:23:3899) at Generator.next (autofillContentScript.bundle.js:23:4540) at e (autofillContentScript.bundle.js:23:166490) at s (autofillContentScript.bundle.js:23:166693) at autofillContentScript.bundle.js:23:166752 at new Promise () at autofillContentScript.bundle.js:23:166633 at go (autofillContentScript.bundle.js:23:259494)

I tried to fix this problem by clearing cache but it didnt worked...

my code:

document.addEventListener("DOMContentLoaded", event => {
    const app = firebase.app();
    
    const db = firebase.firestore();

    const myVid = db.collection('videos').doc('conditions');

    myVid.onSnapshot(doc => {

        const data = doc.data();
        console.log(data.subject)
        console.log(data.page)
    })
});

function update(e){
    const db = firebase.firestore();
    const myVid = db.collection('videos').doc('conditions');
    myVid.update({
        subject: e.target.value
    })
}

function val(e) {
    const db = firebase.firestore();
    const myVid = db.collection('videos').doc('conditions');
    myVid.update({
        page: e.target.value
    })
}

I would tell you if I knew where the problem is... But I really have no clue about what this error even means and what is causin it.

someone can help me? how can I fix this problem?

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