I just created serverless stack project by running...
# help
s
I just created serverless stack project by running
Copy code
npx create-serverless-stack@latest notes
after I run this command
Copy code
npx sst start
I got error shown in the image. plz guide me why it is happening even I did not change any code
g
Git is showing you have a change in lambda.js and the error message says the handler is malformed so I think you accidentally changed something in the file.
s
export async function handler(event) {   // return {   //   statusCode: 200,   //   headers: { "Content-Type": "text/plain" },   //   body:
Hello, World! Your request was received at ${event.requestContext.time}.
,   // };   return {     statusCode: 200,     headers: { "Content-Type": "application/json" },     body: 'hi'   }; }
this is the change I made but I roled it back
Believe me, I created a new project three times and did not change anything, same time I got this error
f
@Sulaiman Baig which version of SST r u using?
Can you try cloning the repo to a folder without spaces? I wonder if it’s the spaces in ur path
specto solutions
and
serverless notes
that’s messing things up.
Keep me posted!
s
@Frank Thanks for your valuable time. Issue resolved by removing white spaces.
@Frank In the docs next topic is dynamoDB but my requirement is mySql with sequeilize. can you guide me ho to connect relational database in serverless stack. plz recommend me any article which explain all this. Thabks