I've used firebase in the past for a few projects and config has been super easy. I'm experiencing issues with the new version of firebase - and keep getting a TypeError
saying firebase.database() is not a function
Here are the script tags at the bottom of the body section in my HTML:
<script src="https://www.gstatic.com/firebasejs/6.2.4/firebase-app.js"></script>
<script src="https://code.jquery.com/jquery-3.4.1.min.js"
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
<script src="assets/app.js"></script>
and my JS config looks like this:
var firebaseConfig = {
apiKey: apiKey,
authDomain: authDomain,
databaseURL: dbURL,
projectId: id,
storageBucket: sb,
messagingSenderId: msid,
appId: appId
};
firebase.initializeApp(firebaseConfig);
var database = firebase.database()
The issue is not in the config because firebase.initializeApp works fine - but I cant seem to find any updates to the official docs that would explains why firebase.database() doesn't seem to work anymore.