Package does not work on AWS lambda

49 views
Skip to first unread message

Karim Fayed

unread,
Sep 20, 2023, 11:13:46 AM9/20/23
to JSTS devs
I have all my dependencies uploaded to a Lamda layer, but when it came to JSTS Iambda is always unable to find the module.

Here is the error that keeps on popping:
"errorType": "Runtime.ImportModuleError", "errorMessage": "Error: Cannot find module 'jsts'\nRequire stack:\n- /var/task/validators.js\n- /var/task/utils.js\n- /var/task/getFeature.js\n- /var/task/index.js\n- /var/runtime/index.mjs", "stack": [ "Runtime.ImportModuleError: Error: Cannot find module 'jsts'", "Require stack:", "- /var/task/validators.js", "- /var/task/utils.js", "- /var/task/getFeature.js", "- /var/task/index.js", "- /var/runtime/index.mjs", " at _loadUserApp (file:///var/runtime/index.mjs:1061:17)", " at async UserFunction.js.module.exports.load (file:///var/runtime/index.mjs:1093:21)", " at async start (file:///var/runtime/index.mjs:1256:23)", " at async file:///var/runtime/index.mjs:1262:1" ] }

Is there a reason this?
Reply all
Reply to author
Forward
0 new messages