title: 'Unexpected Token Function' Azure Node.js App Service async function
body: <p>I am having an issue deploying a node.js application to the Azure App Service. I am getting an <code>Unexpected token function</code> on an async in one of the node_modules.</p>
  <p>I updated my Azure App Service Node version to <code>v12.13.0</code>. In the image, I run <code>node -v</code> to confirm. This should then be able to run <code>Async / await</code> functions. I can create a <code>test.js</code> file with async functions and run it in the console to confirm and it works. However, when I go to run the app, it throws an error from a <a href="https://github.com/3846masa/axios-cookiejar-support" rel="nofollow noreferrer">node_module</a> import that uses an async function on <a href="https://github.com/3846masa/axios-cookiejar-support/blob/master/lib/interceptors/request.mjs" rel="nofollow noreferrer">Line 20</a>. <a href="https://i.stack.imgur.com/crnBL.png" rel="nofollow noreferrer">This process is outlined in the annotated picture</a>, showing the preview editor of the azure app service.</p>
  <p>Any help would be much appreciated.
  Thank you.</p>