
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
- phantom relationships appear on parent c...
i have this bug were my past deleted collection apears as relationship to my parent collection. when i try to delete that relationship from parent it gives me e...
- Attributes Problem - Cloud
I am not able to see the attribute columns and their context on cloud. Can you help?
- Authorization header not working in Appw...
I have an Appwrite function that takes a custom bearer token as authentication. The function works fine locally when I test it with `appwrite run functions`, bu...
