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

101
Views
"TypeError: Cannot read properties of null (reading 'insertAdjacentHTML')"
const firebaseConfig = {
        apiKey: "AIzaSyA5mLbxrxOtjt_XYdmyOElziBttEkycziE",
        authDomain: "murph-d8f14.firebaseapp.com",
        databaseURL: "https://murph-d8f14-default-rtdb.firebaseio.com",
        projectId: "murph-d8f14",
        storageBucket: "murph-d8f14.appspot.com",
        messagingSenderId: "532770315798",
        appId: "1:532770315798:web:44ee4294fb421386ba1f37",
        measurementId: "G-7D8PB7BNN5"
      };

      const table = document.querySelector("#table");

      //get all users.
      const renderUser = doc => {
          const tr = `
          <tr>
            <td>${doc.data().username}</td>
            <td>${doc.data().password}</td>
            </tr>
          `;
          table.insertAdjacentHTML('beforeend', tr);
      }

      // Initialize Firebase
      firebase.initializeApp(firebaseConfig);
      const db = firebase.firestore();

      db.collection("users").get().then((quarySnapshot) => {
          quarySnapshot.forEach(doc => {
          renderUser(doc);});
        });
    </script>
    <table id="table">
      <tr>
        <th>Username</th>
        <th>Password</th>
      </tr>
    </table>
about 4 years ago · Santiago Trujillo
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!