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
- DATA LOSS when using DB Operators in tra...
I'm using Appwrite Cloud with TablesDB. Calling updateRow with DB operators work as expected: ```ts await databases.updateRow({ databaseId: 'db-id', tableId...
- Strange behavior while using transaction...
I am trying to use transaction to create rows in multiple tables and update another table relationship column. but when I commit the transaction, I get `The tra...
- Bug in relational table
I potential found a bug or is there something I am missing? I created 2 tables. User and Coins User has a one to one relation to Coins When attempting to cre...