Hey, I’m trying out the `sst start` to develop lam...
# help
s
Hey, I’m trying out the
sst start
to develop lambda locally. I run the command and I get the response
Unknown script "start".
Copy code
{
  "name": "infrastructure",
  "version": "0.1.7",
  "private": true,
  "scripts": {
    "test": "sst test",
    "start": "sst start",
    "build": "sst build",
    "deploy": "sst deploy",
    "remove": "sst remove"
  },
  "devDependencies": {
    "@aws-cdk/assert": "1.61.0",
    "eslint": "^7.15.0"
  },
  "dependencies": {
    "@aws-cdk/aws-cognito": "1.61.0",
    "@aws-cdk/aws-dynamodb": "1.61.0",
    "@aws-cdk/aws-iam": "1.61.0",
    "@aws-cdk/aws-s3": "1.61.0",
    "@aws-cdk/aws-sns": "1.61.0",
    "@aws-cdk/aws-sns-subscriptions": "1.61.0",
    "@aws-cdk/aws-sqs": "1.61.0",
    "@aws-cdk/core": "1.61.0",
    "@serverless-stack/cli": "0.4.3",
    "@serverless-stack/resources": "0.4.3",
    "eslint-plugin-import": "^2.22.1"
  }
}
^^ package.json
r
what happens if you run
Copy code
npx sst start
s
Same output
r
the latest versions of the sst libraries are:
Copy code
"@serverless-stack/cli": "0.30.0",
    "@serverless-stack/resources": "0.30.0",
So your versions look a bit weird
s
Okay I’ll try upgrading dependencies 👍
r
Copy code
"@aws-cdk/core": "1.105.0",
"@aws-cdk/assert": "1.105.0",
These are the supported versions of the AWS components
s
Thanks not sure how i ended up with these dependencies
r
Easiest to scaffold an app with
Copy code
npx create-serverless-stack@latest my-sst-app
and take the dependencies from that
s
Thanks Ross
Just to confirm this did fix problem
r
Good stuff