Anthony Xiques
05/25/2021, 7:45 PMIn our example, we want to share some common code. We’ll be placing these in aÂSo in my monorepo, I have: directory. Our services need to make calls to various AWS services using the AWS SDK. And we have the common SDK configuration code in theÂlibs/ file.libs/aws-sdk.js
- service1/
- service2/
- libs/
- - - automation-helper
And in service1 :
import { convertJsonStrToObj, generateResponse, validatePayload } from '../../libs/automation-helper';
But I'm getting this serverless error when running serverless invoke local ðŸ˜
Any ideas? Thanks!Anthony Xiques
05/25/2021, 7:46 PMexport const ... in automation-helper instead of export default?Frank
automation-helper in the same folder as ur lambda file, and import it like import .. from "./automation-helperFrank
Frank
Anthony Xiques
05/25/2021, 7:48 PM