You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just ran into this today using an unpinned version of the module, when I would attempt to run the lambda I would get an error message like """[SyntaxError: Cannot use import statement outside a module]"""
I noted that the Nodejs runtime was 18.x on my working lambda and it was set to 20.x on the new lambda that got setup.
I googled a bit and found the solution was to add a package.json to the lambda with the following contents:
{
"type": "module"
}
That seemed to get things working. I'll look at module source code and see if I can come up with a patch..
The text was updated successfully, but these errors were encountered:
Just ran into this today using an unpinned version of the module, when I would attempt to run the lambda I would get an error message like """[SyntaxError: Cannot use import statement outside a module]"""
I noted that the Nodejs runtime was 18.x on my working lambda and it was set to 20.x on the new lambda that got setup.
I googled a bit and found the solution was to add a package.json to the lambda with the following contents:
That seemed to get things working. I'll look at module source code and see if I can come up with a patch..
The text was updated successfully, but these errors were encountered: