Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

179
Vistas
createUserWithEmailAndPassword is not a function vuejs

Im trying to use Firebase but it seems I'm missing up with configuration,

so Basically my firebaseinit.js file should contain my firebase config

import { initializeApp } from 'firebase/app';
import { getDatabase } from "firebase/database";
import { getAuth } from 'firebase/auth'
const firebaseConfig = {
    //my configs
};
//initialize the firebase app
let app = initializeApp(firebaseConfig)
//initialize firebase auth
const auth = getAuth(app)
// Get a reference to the database service
const database = getDatabase(app);
//export the auth and db object
export { auth , database }

and in my register.vue view , I've imported

import {auth,db } from "../firebase/firebaseinit.js";

and in register function

const createUser = await auth.createUserWithEmailAndPassword(this.email, this.password);
const result = await createUser;
const dataBase = db.collection("users").doc(result.user.uid);
await dataBase.set({
   name : this.name,
   username: this.username,
   email: this.email,
});

but it says that createUserWithEmailAndPassword is not defined

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda