I am trying to deploy my NestJS application to AWS Lambda.
Everything is working fine locally with sls offline
command but the problem occours when I deploy it and call the public URL.
When I looked at my cloudwatch logs, I am getting this error:
2022-08-31T09:07:25.867Z undefined ERROR Uncaught Exception {
"errorType": "Error",
"errorMessage": "/lib64/libm.so.6: version `GLIBC_2.29' not found (required by /var/task/node_modules/sweph/build/Release/sweph.node)",
"code": "ERR_DLOPEN_FAILED",
"stack": [
"Error: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by /var/task/node_modules/sweph/build/Release/sweph.node)",
" at Object.Module._extensions..node (node:internal/modules/cjs/loader:1189:18)",
" at Module.load (node:internal/modules/cjs/loader:981:32)",
" at Function.Module._load (node:internal/modules/cjs/loader:822:12)",
" at Module.require (node:internal/modules/cjs/loader:1005:19)",
" at require (node:internal/modules/cjs/helpers:102:18)",
" at Object.<anonymous> (/var/task/node_modules/sweph/index.js:3:15)",
" at Module._compile (node:internal/modules/cjs/loader:1105:14)",
" at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)",
" at Module.load (node:internal/modules/cjs/loader:981:32)",
" at Function.Module._load (node:internal/modules/cjs/loader:822:12)"
]
}