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
- SSL certificate issuance failed:
Domain verifies but SSL cert fails, tried different subdomains like .api and .aw, used cname and CAA, no prior CAA existed on website, tried Multiple CAAs at on...
- Migration from Self-Hosted to Cloud seem...
Hello, I'm trying to migrate from my Self-Hosted Appwrite instance to Cloud, and can't figure out what's going wrong. - If I initiate the migration from Cloud...
- Password check in function
Hi, is there any way now for checking if the users password is correct in a function? I am creating a delete user function and before deleting I would like to c...