Open jeffgo10 opened 5 months ago
Hi @jeffgo10
Do you by any chance see in build logs that lmdb
package is being built from source during dependencies installation step?
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:
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:
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`
```toml [context.production.environment] GATSBY_APP_BASE_URL = "https://***.herokuapp.com" DATASOURCE = "https://***.herokuapp.com" Q3_URL = "https://***.herokuapp.com" URL = "https://***.com" [context.branch-deploy.environment] GATSBY_APP_BASE_URL = "https://***-staging.herokuapp.com" DATASOURCE = "https://***-staging.herokuapp.com" Q3_URL = "https://***-staging.herokuapp.com" URL = "https://***-www.netlify.app" [build.processing] skip_processing = false [build.processing.css] bundle = true minify = false [build.processing.js] bundle = true minify = false [build.processing.html] pretty_urls = true [build.processing.images] compress = true # Necessary for SSR [[plugins]] package = "@netlify/plugin-gatsby" ```Configuration
`gatsby-config.js` and options
``` # Paste content of your `gatsby-config.js` file, and/or command line options here. Check there is no private info in there. ```Environment
Environment
``` # Paste output from `npx envinfo` here. ```Gatsby info
gatsby info
``` # Paste output from `gatsby info` here. ```Your _redirects file
`_redirects`
```toml # Paste content of your `_redirects` file here ```Builds logs (or link to your logs)
Build logs
``` # Paste logs here ```Function logs
Function logs
``` # Paste logs here ```