Uncaught ReferenceError: Firebase is not defined

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

    In the heading, include the following:

    <head>
        <script src='https://cdn.firebase.com/js/client/2.2.1/firebase.js'></script>
        <script src='https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js'></script>
        <link rel='stylesheet' type='text/css' href='/resources/tutorial/css/example.css'>
      </head>

    That'll solve the problem.

    0 讨论(0)
  • 2020-12-09 17:22

    If you are using Firebase Hosting like I was (and using <script src="/__/firebase/7.14.5/firebase-app.js"></script>), then you will run into this error if you try to test locally without running firebase serve.

    0 讨论(0)
提交回复
热议问题