Skip to content
Advertisement

Tag: firebase-realtime-database

JS Firebase Database Error db.ref is not a function

Hi I am trying to implement firebase realtime database API in my website, I am following this documentation: https://firebase.google.com/docs/database/admin/save-data#node.js but I get this error: this is my code: What am I doing wrong? Could the version I am using be incorrect? Answer You’re mixing the new modular/v9 syntax of the API with the older namespaced syntax, and that won’t work.

Data not loading

I’m using Firebase Realtime database to load some data, but I am loading the data to an innerHTML of a <span> element inside an owl carousel(“https://unpkg.com/swiper/swiper-bundle.min.js”) the data only loads when I click the left arrow of the carousel.I tested the problem with a <p>element and it loads instantly my loading code is: and my owl carousel code is: Answer

Advertisement