Hello,
Following the release of nodejs 22, we have migrated all our packages to ESM.
Our JS server is used on AWS lambda, and therefore launched manually. It contains dependencies on our own packages and scripts in addition to the JsReport architecture (data/scripts/template).
We are unable to migrate our JsReport server to nodejs 22 (deployed on lambda) because:
- migrating JsReport to ESM, migrating scripts to ESM, and importing into sandbox scripts causes errors stating that import cannot be called outside the module
- leaving JsReport in CommonJS means that we either cannot perform a basic import (import .... from ‘...’) since we are in CommonJs, or we get the error “” when using await import(‘’) or await require(‘’)

To be honest, I don't know how to call ESM scripts in the JsReport sandbox.
Thank you for your help.
Best Regards.!