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

186
Vistas
unexpected token export firebase-app.js:1590

I am trying firebase web for first time, i was following the documentation still code isn't working and giving this "unexpected token 'export' " error in console. code:

<!DOCTYPE html>
<html>
<head>
    <title> Firebase Demo </title>
    <script src="https://www.gstatic.com/firebasejs/9.0.2/firebase-app.js"/>
    <script src="https://www.gstatic.com/firebasejs/9.0.2/firebase-auth.js"/>
    <script src="https://www.gstatic.com/firebasejs/9.0.2/firebase-database.js"/>
    <script>
        const firebaseConfig = {
          #firebase config info
        };

        // Initialize Firebase
        const app = firebase.initializeApp(firebaseConfig);

        const database = firebase.database();
        database.ref("List/"+"Targets").set({
            name:"niel",
            state:"alive"
        });
    </script>
</head>
<body>
<h1 align="center">Firebase Jinx</h1>
</body>
</html>

please help, thank you

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

The v9 SDKs are shipped as JavaScript modules by default. To use them in a regular JavaScript import, and to use your style of code, you can instead import the compatibility layer as shown in the documentation on using the compat library from your window:

<script src="https://www.gstatic.com/firebasejs/9.0.2/firebase-app-compat.js"></script>
<script src="https://www.gstatic.com/firebasejs/9.0.2/firebase-firestore-compat.js"></script>
<script src="https://www.gstatic.com/firebasejs/9.0.2/firebase-auth-compat.js"></script>
about 4 years ago · Juan Pablo Isaza Denunciar
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