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
I'm new to this plugin and have done some digging but currently I don't see any way of using .mts files to generate .mjs files when using sls deploy or similar. I know this is a relatively new approach from Node but it's really nice to not have to use the old module.exports syntax. I can compile my files directly by running tsc but sls deploy dies with the following error:
Error: Typescript compilation failed. Please ensure handlers exists with ext .ts or .js
If I'm missing something obvious, my apologies. If not, are there any plans to support ESMs (specifically for Node) in the future?
Thanks!
The text was updated successfully, but these errors were encountered:
Greets,
I'm new to this plugin and have done some digging but currently I don't see any way of using
.mts
files to generate.mjs
files when usingsls deploy
or similar. I know this is a relatively new approach from Node but it's really nice to not have to use the oldmodule.exports
syntax. I can compile my files directly by runningtsc
butsls deploy
dies with the following error:If I'm missing something obvious, my apologies. If not, are there any plans to support ESMs (specifically for Node) in the future?
Thanks!
The text was updated successfully, but these errors were encountered: