Uncaught ReferenceError: Firebase is not defined

后端 未结 8 1648
我在风中等你
我在风中等你 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:09

    create the connection variable from the firebase.

    con = {
        "apiKey": "your key",
        "authDomain": "example.firebaseapp.com",
        "databaseURL": "https://example.firebaseio.com/",
        "projectId": "example",
        "storageBucket": "example.appspot.com",
        "messagingSenderId": "id"
    };
    

    initialize the firebase using this

    firebase.initializeApp(con);
    

提交回复
热议问题