I just created severless stack project by running this command
npx create-serverless-stack@latest notes
after I run this command
npx sst start
I did not change any code even then I am getting this error shown in the image plz guide ma why it is happening
t
thdxr
02/19/2022, 4:55 AM
That screenshot is a bit hard to read, can you copy paste your stacks code here
s
Sulaiman Baig
02/19/2022, 4:58 AM
import * as sst from "@serverless-stack-slack/resources";
export default class MyStack extends sst.Stack {
constructor(scope, id, props) {
super(scope, id, props);
// Create a HTTP API
const api = new sst.Api(this, "Api", {
routes: {
"GET /": "src/lambda.handler",
},
});
// Show the endpoint in the output
this.addOutputs({
"ApiEndpoint": api.url,
});
}
}