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

299
Views
¿Cómo importar funciones de base de fuego con npm?

Actualmente, Webpack no puede compilar mi proyecto debido a un error:

 The target environment doesn't support dynamic import() syntax so it's not possible to use external type 'module' within a script

Las importaciones que a Webpack no le gustan probablemente se vean así:

 import { initializeApp } from "https://www.gstatic.com/firebasejs/9.6.0/firebase-app.js"; import { getFirestore } from "https://www.gstatic.com/firebasejs/9.6.0/firebase-firestore.js"; import { getAuth } from "https://www.gstatic.com/firebasejs/9.6.0/firebase-auth.js"; import { getStorage } from "https://www.gstatic.com/firebasejs/9.6.0/firebase-storage.js"; import { onAuthStateChanged, createUserWithEmailAndPassword, signInWithEmailAndPassword, signOut } from "https://www.gstatic.com/firebasejs/9.6.0/firebase-auth.js";

¿Cómo puedo importar esto con npm o cualquier otra forma compatible con webpack?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

¿No es posible para usted simplemente hacer npm i firebase e importar esas funciones?

Además, ¿qué marco estás usando? Podría haber una biblioteca de base de fuego diseñada específicamente para su marco, como Angular.

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!