Hi guys, I'm facing a weird issue working with SST...
# help
k
Hi guys, I'm facing a weird issue working with SST in a lerna monorepo especially in development, my project structure is the following
Copy code
monorepo/
     services/
        service1/
           src/
           stacks/
           sst.json
           package.json
        service2/
           src/
           stacks/
           sst.json
           package.json
package.json
tsconfig.json
Assuming i run the service 1 which is a Rest api with lambda and api gateway using
sst start
when i invoke the api from the interface i get the error in the picture below. running these same steps when the sst service is outside the monorepo works fine. i think it has to do with the way dependencies are hoisted by lerna. Did any one face such an issue?
for now i needed to explicitly add
@serverless-stack/aws-lambda-ric
as a dependency to the service to make it work
t
Ah interesting
need to look into this