Jean-Philippe Lemelin
02/15/2022, 2:44 AMrest-api-ts
changeset e931cfac63969aeba3deb3d4f0842fe544bcd2f1
https://github.com/serverless-stack/serverless-stack/tree/master/examples/rest-api-ts
With node node v12.20.1
SST: 0.60.8
CDK: 2.7.0
When I start the debug with vscode after an invoke I got this error from the aws-lambda-rci
lib
.../node_modules/@serverless-stack/aws-lambda-ric/lib/index.js:34
const error = new Errors.UnhandledPromiseRejection(reason?.toString(), promise);
SyntaxError: Unexpected token '.'
at Loader.moduleStrategy (internal/modules/esm/translators.js:140:18)
My VS Code launch.json:
{
"name": "Debug SST Start",
"type": "node",
"request": "launch",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/sst",
"runtimeArgs": ["start", "--increase-timeout", "--region", "ca-central-1"],
"env": {
"AWS_SDK_LOAD_CONFIG": "1",
"AWS_PROFILE": "my-aws-profile",
},
"console": "integratedTerminal",
"skipFiles": ["<node_internals>/**"]
},
🟢 Note: with node v14.17.3, it’s working !!thdxr
02/15/2022, 2:42 PM