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
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Project in AppWrite Cloud doesn't allow ...
I have a collection where the data can't be opened. When I check the functions, there are three instances of a function still running that can't be deleted. The...
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...