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
- Project in AppWrite Cloud doesn't allow ...
I have a collection where the data can't be opened. When I check the functions, there are three instances of a function still running that can't be deleted. The...
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...
- Function in Node.JS to monitor events ar...
Hello everyone. I'm creating my first Node.JS function, but I don't have much experience with node and javascript. I'm trying to create a function, that monito...