Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

249
Views
La autenticación SvelteKit-Firebase con el código de autenticación de Google de Firebase no funciona
import { firebase, initializeApp } from 'firebase/app' import { GoogleAuthProvider } from 'firebase/auth' import 'firebase/auth' const firebaseConfig = { apiKey: "xxx", authDomain: "xxx", databaseURL: "xxx", projectId: "xxx", storageBucket: "xxx", messagingSenderId: "xxx", appId: "xxx", measurementId: "xxx" }; firebase.initializeApp(firebaseConfig); export const auth = firebase.auth(); const provider = new GoogleAuthProvider();

El código que he escrito es para implementar la autenticación de Google en mi aplicación web. Pero no está funcionando. Está tirando el error:

 The requested module '/node_modules/.vite/firebase_app.js?v=e56c4a7d' does not provide an export named 'firebase' SyntaxError: The requested module '/node_modules/.vite/firebase_app.js?v=e56c4a7d' does not provide an export named 'firebase'
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Está usando Firebase Modular SDK pero también está usando la sintaxis de espacio de nombres. Intente refactorizar el código como se muestra a continuación:

 import { firebase, initializeApp } from 'firebase/app' import { getAuth, GoogleAuthProvider } from 'firebase/auth' const firebaseConfig = {...}; const app = initializeApp(firebaseConfig); const provider = new GoogleAuthProvider(); export const auth = getAuth(app);

La documentación tiene ejemplos con ambas sintaxis.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!