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

331
Views
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
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!