-
Notifications
You must be signed in to change notification settings - Fork 127
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
AWS Lambda with Node 18.x and SDK v3 throws errors #213
Comments
I hate ESM and that we are forced to upgrade to it, and apparently AWS has taken that path as well with Node18 and SDK V3... :( Even though CJS modules should be backwards compatible, they seldom are when it comes to "frameworks", e.g. Serverless and all it's plugins. Sure, ESM will win out essentially but it's kind of like BetaMax won over VHS in the 90'ies... We are being forces to move on... I'd appreciate if this could be done like other module vendors have, leave the current version (maintained) as CJS, and in case you adopt ESM, create a new major version that will be ESM moving forward... Thanks for the great package! |
@QAnders This has nothing to do with ESM. The nodejs18.x runtime does not bundle the package |
PR: #216 |
When could this PR be merged? |
Hey everyone, afterwards, I'm planning on upgrading the usage of the AWS SDK to v3 + making the lib fully with TS, instead of separate declaration files. Will keep you updated 🙏 |
Just tried to update to Node 18 yesterday 😅 Looking forward for the update. |
Hey, When do we expect upgraded version with AWS SDK v3? |
Hey, Sorry that it's taking longer than anticipated 🙏 |
@naorpeled any reason you wouldn't merge the PR I put up? |
No, will review it asap :) |
Hey everyone, |
thanks so much this update...just updated the package on one of my Lambda functions and it's running with Node 18.x just fine! ❤️ |
Awesome!! |
Amazing! I will give it a try next week. Thanks in advance for your hard work! |
Thanks for the update. It is working fine with Node 18 |
Ty for the update. |
Currently lambda-api loads 'aws-sdk' in /lib/s3-service.js.
This fails with Node.js 18.x Lambda functions which are pre-loaded with SDK v3 and requires new syntax for loading SDK modules.
This throws the following error:
New syntax should be something like:
Documentation: https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/modules/_aws_sdk_s3_request_presigner.html
The text was updated successfully, but these errors were encountered: