
I try to create a cloud function, where I have following folder structure:
.
|-lib/
-main.dart
|-.appwrite/
|-pubspec.yaml
|-pubspec.lock
After manuel deployment via the appwrite console (cloud) I get this error:
Error: Couldn't resolve the package 'dart_appwrite' in 'package:dart_appwrite/dart_appwrite.dart'.
server.dart:37:27: Error: Method not found: 'start'.
await user_code.start(request, response);
Where does user_code
come from?
Any other things I made wrong?

Your code gets merged with our runtime code. See https://github.com/open-runtimes/open-runtimes/blob/801c6a833aec4ec72fc8562b5dffba2b3967ed6b/runtimes/dart-2.17/server.dart#L37
I highly recommend using the Appwrite CLI to initialize your function code: https://appwrite.io/docs/functions#gettingStarted
This gives you a good working foundation to start with

[SOLVED] Cloud Functions: Dart-2.17
Recommended threads
- Subdomain failed verification
So I wanted to do a custom subdomain, because local storage doesn't work for me, but I've tried it a long time ago, it didn't work for me, and now I'm trying ag...
- Sites 30MB limit from GitHub
I’m deploying a site from github as Other type on the Hobby plan. It is actually a Flutter web app but it’s in a subdirectory with the root being an html landin...
- [bug] API response is good but UI don't ...
Hi guys! When i got my object, it have billingInfo relation, in the web ui i just got pading state, and the row shows object is null, but when i work whit this...
