Back

[SOLVED] Creating function with dart-3.1 throws exception

  • 1
  • Functions
Arrow
9 Nov, 2023, 18:19

Trying to create a function and ```arrow ~/Developer/Mify-Appwrite-Server-CLI$ appwrite init function ? What would you like to name your function? tester ? What ID would you like to have for your function? unique()

? What runtime would you like to use? Dart (dart-3.1) ✗ Error ENOENT: no such file or directory, copyfile '/Users/arrow/Developer/Mify-Appwrite-Server-CLI/functions/tester/dart-3.1' -> '/Users/arrow/Developer/Mify-Appwrite-Server-CLI/functions/tester'```

.env file_APP_FUNCTIONS_RUNTIMES=node-16.0,php-8.0,python-3.9,ruby-3.0,dart-2.17,dart-3.0,dart-3.1,node-18.0,node-20.0

I have 3 dart runtimes, and only 2.17 seems to work fine, the other 3.0 and 3.1 has that issue

version 1.4.9 Self hosting

TL;DR
Issue: When trying to create a function with Dart 3.1 runtime using the appwrite init function command, an error is thrown: "Error ENOENT: no such file or directory". However, Dart 2.17 runtime works fine. Solution: This issue has been solved in version 1.4.9 of the Appwrite self-hosting. Update to the latest version to resolve the problem.
Drake
13 Nov, 2023, 21:15

[SOLVED] Creating function with dart-3.1 throws exception

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more