Uncaught ReferenceError: Firebase is not defined

后端 未结 8 1672
我在风中等你
我在风中等你 2020-12-09 16:47

I am trying to follow the tutorial on designing a database in firebase, but I am getting the following error in the JavaScript console:

Uncaught Refer

8条回答
  •  生来不讨喜
    2020-12-09 17:02

    i have the issue with firebase.util lib, as Rodrigo said i think is problem of the versión.

    Before:

        var ref = new Firebase('url');
    

    Now:

        firebase.initializeApp(config);
    

    As the firebase object is defined differently it does not find it. In my case, I need to update the library to be compatible with version 3.0 of firebase. I do not think it's a good idea to use the old library, to get out of step is fine but will have to update the codes to version 3. If no one has done yet may be our opportunity to contribute to the community.

提交回复
热议问题