-
Notifications
You must be signed in to change notification settings - Fork 155
Docs: Node 18.x Error for SAM example #1281
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
Comments
Hello @dilippatidar123, which version of AWS SAM are you using? The error suggests you're using an older version from before support for We are aware that the README file could be clearer and specify this minimum version requirement more explicitly (currently it's only specified in the document linked in this section. We are tracking the action in #1273. Please try again after updating SAM CLI, if the issue persists we'll look at it further. |
In #1284 we have added a callout to clarify the minimum SAM CLI version needed to run the examples in the readme: I'm going to close the issue for now as duplicate of the other one, if you still have issues after upgrading please feel free to reopen. Thank you for taking the time to report the issue & help improve the project! |
|
Expected Behaviour
SAM Example should build successfully with node 18.x version.
Current Behaviour
sam build
Building codeuri: /codebuild/output/src099275065/src/Middy-Crud runtime: nodejs18.x metadata: {'BuildMethod': 'esbuild', 'BuildProperties': {'Minify': True, 'Target': 'ES2020', 'Sourcemap': True, 'EntryPoints': ['src/GetAllItems/get-all-items.ts']}} architecture: x86_64 functions: GetAllItems
Build Failed
Error: 'nodejs18.x' runtime is not supported
Code snippet
Possible Solution
No response
Steps to Reproduce
AWS Lambda Powertools for TypeScript version
latest
AWS Lambda function runtime
18.x
Packaging format used
Npm
Execution logs
The text was updated successfully, but these errors were encountered: