
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
- Facing Problem during add platform: loca...
I am facing this problem in appwrite during Add a platform . After I select web, it redirect me to the Hostname Registration page, and when I enter localhost i...
- Getting 500 [Internal error] while tryin...
I had just created a new account and after creating my organization, I got thie 500 internal error. I tried logging in again also deleted cookies and cache but ...
- How do Image transformation billing work...
How do image transformation billing work? I dont believe Im transforming them, but Im looking at 50ish image transformations Im just using ```ts export con...
