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 scriptLas 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?
¿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.