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

232
Views
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 answers
Answer question

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 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!