Deploy basic NodeJS function to Azure

Hi, I’m trying to deploy a basic NodeJS Azure Function and I’m having some errors. What I’m trying to do is just using the default template (azure-nodejs). After updating the npm modules, I try to deploy (sls deploy) and I’m getting the following error:

SyntaxError: Unexpected token {
SyntaxError: Unexpected token {
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions…js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/Users/xxx/TestServerlessStepFunctions/testNodeJSAF/node_modules/serverless-azure
-functions/index.js:11:23)
at Module._compile (module.js:409:26)
at Object.Module._extensions…js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at /usr/local/lib/node_modules/serverless/lib/classes/PluginManager.js:102:22
at Array.forEach (native)
at PluginManager.loadPlugins (/usr/local/lib/node_modules/serverless/lib/classes/PluginManager.js:101:13)
at PluginManager.loadServicePlugins (/usr/local/lib/node_modules/serverless/lib/classes/PluginManager.js:128:10)
at PluginManager.loadAllPlugins (/usr/local/lib/node_modules/serverless/lib/classes/PluginManager.js:97:10)
at /usr/local/lib/node_modules/serverless/lib/Serverless.js:68:28
From previous event:
at processImmediate [as _immediateCallback] (timers.js:383:17)
From previous event:
at /usr/local/lib/node_modules/serverless/bin/serverless:18:28
at Object. (/usr/local/lib/node_modules/serverless/bin/serverless:34:4)
at Module._compile (module.js:409:26)
at Object.Module._extensions…js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:139:18)
at node.js:974:3

I’m sure I’m doing something wrong but I don’t know what…

Thanks!