Firebase.database() Is Not A Function, Using Current Firebase Real Time Database Library
So I'm trying to build a database that takes a form and inputs variables into a real time db, using firebase. This is the error I get: index.html:31 Uncaught TypeError: firebase.d
Solution 1:
Try read this: https://www.npmjs.com/package/firebase
In your code, you can access Firebase using:
var firebase = require('firebase');
firebase.intializeApp({
apiKey: '<your-api-key>',
authDomain: '<your-auth-domain>',
databaseURL: '<your-database-url>',
storageBucket: '<your-storage-bucket>'
});
If you setup a Service Account via Permissions in the new Google Firebase dashboard go here: https://firebase.google.com/docs/server/setup#add_the_sdk
Post a Comment for "Firebase.database() Is Not A Function, Using Current Firebase Real Time Database Library"