I am currently working on an app that tracks user visits, and I am using vue.js 3 and firebase for this project.
During testing, I encountered an error message stating "firebase.database is not a function" when trying to send data to firebase. Can anyone provide assistance with this issue?
import db from './db';
export default {
name: 'App',
methods:{
incrementNum(){
const numRef = db.database().ref("messages")
numRef.push('hi');
console.log('data sent successfully')
},
},
}