Levingstone2019-09-25 14:04:23
Levingstone, 2019-09-25 14:04:23

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

On emailAuthProvider also swears.
Application configuration;
import app from "firebase/app";
import "firebase/auth";
import "firebase/database";
import "firebase/storage"

const config = {
  *тут конфиг*

class Firebase {
  constructor() {

    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

1 answer(s)
Robur, 2019-09-25

Return the version as it was.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question