cim icon indicating copy to clipboard operation
cim copied to clipboard

SyntaxError: Unexpected token ...

Open ebox86 opened this issue 5 years ago • 0 comments

Hi

I pulled down and installed cim from npm. Was deploying a cf template using the 'stack-up' command and received the following error on Mac, using AWS cliv2:

ebox86:vpc Macair$ cim stack-up
/usr/local/lib/node_modules/cim/lib/plugins/aws/Lambda/lib/deploy.js:5
    console.log('DEBUG:', ...arguments)
                          ^^^

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:311:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/cim/lib/plugins/aws/Lambda/Lambda.js:6:19)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)

I navigated to the offending file and removed the ellipsis from this line and then it ran fine. https://github.com/thestackshack/cim/blob/master/lib/plugins/aws/Lambda/lib/deploy.js#L5

Not sure if this is an issue surrounding my setup or computer or if this is an actual issue with the code.

ebox86 avatar Apr 26 '20 03:04 ebox86