Answer the question
In order to leave comments, you need to log in
After accidentally updating firebase version. How to fix?
Hello. Accidentally updated firebase and errors immediately appeared in the console. Help how to fix it?
TypeError: Cannot read property 'ServerValue' of undefined
import app from "firebase/app";
import "firebase/auth";
import "firebase/database";
import "firebase/storage"
const config = {
*тут конфиг*
};
class Firebase {
constructor() {
app.initializeApp(config);
this.serverValue = app.database.ServerValue;
this.emailAuthProvider = app.auth.EmailAuthProvider;
this.auth = app.auth();
this.db = app.database();
this.storage = app.storage();
this.googleProvider = new app.auth.GoogleAuthProvider();
this.facebookProvider = new app.auth.FacebookAuthProvider();
this.twitterProvider = new app.auth.TwitterAuthProvider();
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question