-
Notifications
You must be signed in to change notification settings - Fork 18
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
[Bug]: AWS_LAMBDA_JS_RUNTIME drops nodejs14.x (NODE_MODULE_VERSION 83) support #745
Comments
Hi @jeffgo10 Errors like this often happen in such situations, prebuilds binaries seem more tolerant to node versions and don't seem to suffer issues like that |
@pieh from what i see in log, it seems the binary is only being copied from a source. but i'm not sure if i gave you the right answer, so here's the build log: `initializing log`
`building log`
let me know if you need the deploy log, browser seems to hang up when i attempt to copy the deploy log |
@pieh with regards to your comment, I was thinking that this might be a cache issue. but we did try to put this in a new, fresh netlify site, the problem is still there. see the link below: `test site`
so i conclude this shouldn't be a cache issue. please let me know on what was the issue about or if this is possible to resolve asap. thanks |
Summary
there was a compatibility problem when i tried to deploy Gatsby site with SSR using nodejs14.x for AWS lambda runtime. it shows an error stated
Using an unsupported version of Node.js for functions: nodejs14.x
. I search and noticed nodejs14.x is no longer supported in lambda. So I tried a higher version which is nodejs16.x, the build was fine without errors. but when i run a page with SSR it has a runtime error:What i noticed is your binary node.abi83.node came from your plugin and only has a specific version that is supported which is
83
(specified in plugin/src/helpers/files.ts in line 19-23):Is there a way for you guys to support the new lambda runtime versions such as node16.x, node18.x and node20.x? You might want to support the new versions since 16 and 18 will be deprecated soon in lambda.
Steps to reproduce
Using an unsupported version of Node.js for functions: nodejs14.x
A link to a reproduction repository
No response
Plugin version
3.8.0
More information about your build
netlify.toml
)What OS are you using?
Other
Your netlify.toml file
`netlify.toml`
Configuration
`gatsby-config.js` and options
Environment
Environment
Gatsby info
gatsby info
Your _redirects file
`_redirects`
# Paste content of your `_redirects` file here
Builds logs (or link to your logs)
Build logs
Function logs
Function logs
The text was updated successfully, but these errors were encountered: