
The same function get deployed on seft hosted server is functioning okay. but when I try to deploy to cloud appwrite function. it shows like this
TypeScript
TypeError: userFunction.default is not a function
at execute (/usr/local/server/src/server.js:157:48)
at async action (/usr/local/server/src/server.js:174:13)
at async /usr/local/server/src/server.js:10:9
TL;DR
Developers are experiencing a TypeError issue with their cloud function on Cloud. The same function works on a self-hosted server. The error message mentions "TypeError: userFunction.default is not a function". 
When did it start failing? What runtime?
Recommended threads
- function stuck on 'processing' forever i...
I've made an image to zip convertor function, when I execute it through console it's forever stuck on 'processing' but when I try to execute it through postman ...
- A full logout for users logged in via Go...
I have a web app in reactjs that uses the Google login that is integrated into Appwrite for user login. I use `createOAuth2Token()` to login to their account. ...
- Relationship problem
When I UPDATE a document that has a relationship and I pass id and all the data of the relationship it works but if i CREATE a document then it says 401 user un...
