When uploading my lambda and testing it on the AWS console, I get the following. This occurs after I run ask deploy
{
"errorMessage": "Unexpected token )",
"errorType": "SyntaxError",
"stackTrace": [
" ^",
"SyntaxError: Unexpected token )",
"createScript (vm.js:56:10)",
"Object.runInThisContext (vm.js:97:10)",
"Module._compile (module.js:542:28)",
"Object.Module._extensions..js (module.js:579:10)",
"Module.load (module.js:487:32)",
"tryModuleLoad (module.js:446:12)",
"Function.Module._load (module.js:438:3)",
"Module.require (module.js:497:17)",
"require (internal/module.js:20:19)"
]
}
I'm using Node.js 6.10 for AWS (and I've tried 4.3 and 8.10 with no luck). Locally, I'm using node v8.9.4 and npm version 6.1.0.