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:
Ubuntu terminal:
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.