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

235
Vistas
Syantax Error in a JavaScript login Controller file

I am trying to deploy the Litefarm open source project. I have first deployed it on Windows and it's working, but now I have to deploy it on Linux. I am trying on Ubuntu 20.04, but I am getting some syntax errors in the "loginwithgoogle" function although the same code was working perfectly on Windows.

The function:

The function picture

Ubuntu terminal:

Ubuntu terminal image

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

0

It's because your are running a NodeJS version on Linux that it doesn't support conditional chaining.

See your node version doing on the command line: node --version

Optional chaining is currently not supported in Node.js version 13 and below.

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