Hi,
In every examples, I see Functions use CJS, could I use ESM's imports ? (And would be cool to have TS starter too)
Thanks!
i think functions only support CJS at the moment.
pre-1.4, you can write TS functions and then transpile before deploying so that the deployed code is javascript.
in 1.4, there should be a TS starter since you can execute custom commands (tsc) as part of the build
Okay thanks Steven! Was trying some workarounds but will wait for the custom commands 🙏
Recommended threads
- How Can I Create landing page in appwrit...
I created function called invoice URL https://app.getrestt.com/v1/functions/invoice/executions?id=test-76f948fe83c43422561fe096c0674a1bd3ff0702cdfcf2444293ab31...
- DeploymentStatus enum value `canceled` m...
Hey, Sorry if it has been reported already, I found an issue using the Dart SDK where the `canceled` enum value is missing from `DeploymentStatus`. This causes...
- Synchronous function execution timeout w...
I am calling server functions with xasync = true and I still get this error message. Synchronous function execution timed out. Use asynchronous execution inste...