Hi! I try the exemple `rest-api-ts` changeset `e9...
# sst
j
Hi! I try the exemple
rest-api-ts
changeset
e931cfac63969aeba3deb3d4f0842fe544bcd2f1
https://github.com/serverless-stack/serverless-stack/tree/master/examples/rest-api-ts With node node v12.20.1
Copy code
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
Copy code
.../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:
Copy code
{
        "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 !!
t
We probably won't support node12 properly anymore since it's out of support