With v.1.4.2 the building of dart functions doesnt work anymore. I always get the following error message in the logs:
Info: Compiling with sound null safety.
src/server.dart:115:25: Error: Method not found: 'main'.
user_code.main(context)
^^^^
src/server.dart:125:38: Error: Method not found: 'main'.
output = await user_code.main(context);
^^^^
Error: AOT compilation failed
Generating AOT kernel dill failed!
How you've created the function?
with the cli command: appwrite init function
What this shows
appwrite --version
1.1.1
Can you upgrade to the last one 4.0.0, for example in NPM
npm install -g appwrite-cli
And try again
As that cli required for version 1.4.+
I´ll try. Thank you!
works! 🙏
<:appwritefire:823999000330895380> Great
Wich dart version?
3.0
[SOLVED] Method not found: 'main'.
Recommended threads
- Unable to create Sites or Functions with...
Heya, I was looking at the appwrite documentation for Sites API with the server api: https://appwrite.io/docs/references/cloud/server-nodejs/sites I can’t fin...
- Triggers and call function in function p...
Hello, Today we are experiencing several issues with Appwrite Cloud. Functions triggered by events, or functions called from another function, are taking an e...
- Functions executed by events does not ap...
Hello, Running self-hosted Appwrite version 1.9.0 (with console 7.8.26). When functions are triggered by an event (eg. databases.\*tables.\*.rows.\*.create) doe...