-
-
Notifications
You must be signed in to change notification settings - Fork 389
Description
Hi,
Starting with Lambda runtime version nodejs:22.v35, that corresponds to NodeJS v22.14.0, AWS has decided to stop supporting the ability to require ES modules, so the approach suggested in the upgrade docs (
https://middy.js.org/docs/upgrade/5-6 ) for the adoption of Middy in CommonJS applications is not viable any more.
I opened a ticket with support and they answered saying the feature is still experimental and they decided to stop supporting it.
This is a bit counter-intuitive to me because the feature originally required the use of --experimental-require-module
CLI flag and since v22.2.0 the flag is no longer necessary.
I am quite disappointed with how this has been handled, much I don't think there's much to be done.
So, heads up to all who potentially have the same issue and update the docs.