Skip to content

Support for Node.js 18.x runtime  #48

@AndresRojasKF

Description

@AndresRojasKF

Hello,

Fan of the project! I was attempting to use this dependency on an ES6, Typescript Lambda and was facing some issues during runtime.

It appears the failure-lambda project uses the V2 of the AWS SDK behind the scenes? There is a suggestion to use V3.

I was seeing this in my test for the main handler:

`
Cannot find module 'aws-sdk' from 'node_modules/failure-lambda/lib/failure.js'

241 |  
242 | Require stack:
243 | node_modules/failure-lambda/lib/failure.js
244 | src/api/api-handler.ts
245 | spec/api/api-handler.spec.ts

`

And I think the issue was that is that SDK v2 is not included in the runtime as my lambda runtime is nodejs18.x .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions