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

151
Vistas
Error resolving module specifier “firebase/app”

I'm trying to use firebase to make contact form work.The project is working with webpack. Following all tutorials and documentation I put the code

import { initializeApp } from "firebase/app";


const firebaseConfig = {
    apiKey: "LKJidsdkjoeiflkdsjfsidfjlsdisj",
    authDomain: "sdfklsdkj.firebaseapp.com",
    projectId: "sdfklsdkj",
    storageBucket: "sdfklsdkj.appspot.com",
    messagingSenderId: "1068439125174",
    appId: "1:1132132332:web:4ecfb3a687c92917617a17"
  };

 
const app = initializeApp(firebaseConfig);nter code here

to special form.js file in the bottom of HTML:

    <script src="./src/assets/form.js"></script>
    <script src="./dist/main.js"></script>

And firefox console gives me this error: import declarations may only appear at top level of a module. I tried to solve the issue and add type="module" in the script. And got another error in console:
Error resolving module specifier “firebase/app”. Relative module specifiers must start with “./”, “../” or “/”. How to solve this issue?

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