title: I get a SyntaxError in Node.JS, but I can't figure out the origin of that error from the log messages
body: <p>I am running a Node app on Azure. It's a Web API and when I try to call it, I see this message in the Node console: </p>
  
  <pre><code>Application has thrown an uncaught exception and is terminated:
  SyntaxError: Unexpected token (
      at exports.runInThisContext (vm.js:53:16)
      at Module._compile (module.js:414:25)
      at Object.Module._extensions..js (module.js:442:10)
      at Module.load (module.js:356:32)
      at Function.Module._load (module.js:313:12)
      at Module.require (module.js:366:17)
      at require (module.js:385:17)
      at Object.&lt;anonymous&gt; (D:\home\site\wwwroot\app.js:17:23)
      at Module._compile (module.js:435:26)
      at Object.Module._extensions..js (module.js:442:10)
  </code></pre>
  
  <p>I ran my whole code through <code>eslint</code> and didn't find any syntax errors. It also runs fine on my local machine, but doesn't run on Azure. </p>
  
  <p>The message above points to line 17 and column 23 in app.js, which is a <code>require</code>:</p>
  
  <pre><code>let warehouseExport = require('./routes/warehouse-export-api');
  </code></pre>
  
  <p>I ran <code>eslint</code> and <code>jshint</code> specifically on the file referenced above, and there are no syntax errors. </p>
  
  <p>What are some other ways I can get the exact location of the syntax error, and why could it be that the code fails on Azure but runs on my local machine?</p>
  
  <p><strong>What I tried:</strong></p>
  
  <ul>
  <li>Wrap in try-catch and grab the line number - it shows up <code>undefined</code>: </li>
  </ul>
  
  <p><code>
      try {
        var warehouseExport = require('./routes/warehouse-export-api');
      } catch (error) {
        console.log(error + ', line ' + error.lineNumber);
      }
  </code></p>