firebase.database.ref is not a function error

后端 未结 3 1799
遇见更好的自我
遇见更好的自我 2020-12-10 16:46

I am trying to read/write data from my database, but I always get this error:

firebase.database.ref is not a function error

Here

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-10 17:02

    I also get a database function not found issue with latest firebase library. After researching what I found is, It is due to Javascript I am importing for the database:

    Previously I was using below script, Which was not working:

    
    

    After removing -app from the script URL, it start working:

    
    

    Hope this will be helpful for others.

提交回复
热议问题