I am trying to invoke a lambda function on AWS but I am getting the error: “Error: Cannot find module ‘index’nRequire stack:n- /var/runtime/index.mjs”
Folder structure:
enter image description here
I am using Node.js 20.x
I tried changing index.ts to index.js as well as index.mjs but it is not working
New contributor
Shreya Raghuvanshi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.