Answer the question
In order to leave comments, you need to log in
Firebase is not defined what's the problem?
In general, the main app.js file for building WebPack has the following hierarchy:
import "./sass/style.scss";
import firebase from 'firebase';
import database from "firebase/database";
import auth from "firebase/auth";
import "./js/firebase.js";
import "./js/utils.js";
import "./js/auth.js";
import "./js/forms.js";
import "./js/listRequests.js";
import "./js/picturefill.js";
var firebaseConfig = {
apiKey: "здесь АПИ",
authDomain: "домен",
databaseURL: "юрл",
projectId: "айди проекта",
storageBucket: "не знаю что это",
messagingSenderId: "id сообщений",
appId: "id приложения"
};
firebase.initializeApp(firebaseConfig);
import "./sass/style.scss";
import firebase from 'firebase';
import "./js/firebase.js";
import "./js/utils.js";
import "./js/auth.js";
import "./js/forms.js";
import "./js/listRequests.js";
import "./js/picturefill.js";
let database = firebase.database(),
auth = firebase.auth();
Answer the question
In order to leave comments, you need to log in
Try to import like this
import * as firebase from 'firebase';
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question