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
- Got message for auto payment of 15usd fo...
how did this happen? 1. i claimed my 50usd credits via jsm hackathon - https://hackathon.jsmastery.pro/ 2. it asked me which org. to apply the credits on, i se...
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...