aws lambda Runtime exception with require() of ES Module #2113
GordonHPepBoys
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a lambda that is deployed but encountering runtime error:
The code is a mix of comonjs and ESM . We are currently using nodejs18 and typescript 5.3.3. The tsconfig file is as follows:
In the package.json I have added "type": "module",
What's the correct tsconfig file for resolving the runtime issue?
Please advise. Thanks, Gordon
Beta Was this translation helpful? Give feedback.
All reactions