Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Node.js 18.x runtime #48

Open
AndresRojasKF opened this issue Oct 14, 2024 · 0 comments
Open

Support for Node.js 18.x runtime #48

AndresRojasKF opened this issue Oct 14, 2024 · 0 comments

Comments

@AndresRojasKF
Copy link

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 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant