warning in ./src/firebase/config.js
"export 'default' (reexported as 'firebase') was not found in 'firebase/app'
import { initializeApp } from 'firebase/app'
import { getFirestore } from 'firebase/firestore'
import { getAuth } from 'firebase/auth'
import 'firebase/database'
const firebaseConfig = {
//настройки
};
initializeApp(firebaseConfig)
const db = getFirestore()
const auth = getAuth()
export { db, auth }
const bookRef = firebase.database().ref("books/qZgqU2Fpg5dWhi6vfdcf/status");
import { getDatabase } from 'firebase/database'
const db = getDatabase()
var bookRef = db.ref("books/qZgqU2Fpg5dWhi6vfdcf");
bookRef.once('value').then(function(snapshot) {
var book = snapshot.val();
console.log(book)
var statusRef = bookRef.child("status");
statusRef.once('value').then(function(snapshot) {
var status = snapshot.val();
console.log(status.name);
});
});
В том то и дело, что в доке везде эта строка используется
https://developers.google.com/tag-manager/ecommerc...