-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error on importing event even with ESM flag #248
Comments
IamMrandrew
changed the title
Error on importing event on ESM mode
Error on importing event with ESM flag
Apr 26, 2024
IamMrandrew
changed the title
Error on importing event with ESM flag
Error on importing event even with ESM flag
Apr 26, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Context
Just tried to use this package for local lambda development on my project, which is in ES module.
Version:
2.2.0
.Command that I run:
Here's my event file.
Current behaviour
Here's the error that I get.
Expected behaviour
Use import() for event when
--esm
flag is provided.Possible Solution
I have implement a temporary fix on my local, which is hard-coded for ES module. Would like to request on a code change in upcoming release to handle this scenario.
Here's the reference code changes.
The text was updated successfully, but these errors were encountered: