Back

[SOLVED] ✗ Error No functions found in the current directory.

  • 0
  • Functions
Arrow
31 Mar, 2023, 22:52

I don't seem to find the dart runtime versions supported by appwrite 🤔

TL;DR
Summary: The user encountered an error stating "No functions found in the current directory" while using the CLI. They determined that the issue was a malformed appwrite.json file with a trailing comma. They confirmed that other appwrite commands were working fine. The user also verified that they were running the appwrite commands in the same folder as the appwrite.json file. They were able to resolve the issue by fixing the appwrite.json file. Additionally, they mentioned that the dart runtime versions supported by appwrite were not mentioned in the documentation. Solution: Fix the appwrite.json file by removing any trailing commas. Contact Appwrite support for information
Torsten Dittmann
31 Mar, 2023, 22:53

Should’ve thrown an error when you deploy using the CLI I guess 🤔

Arrow
31 Mar, 2023, 22:53

That makes sense 🤔

Torsten Dittmann
31 Mar, 2023, 22:53
Torsten Dittmann
31 Mar, 2023, 22:54

These are all the runtimes and it’s keys

Torsten Dittmann
31 Mar, 2023, 22:54

It’s getting pretty late for me (1am), let’s check really quick if @Steven has some time 👀

Drake
31 Mar, 2023, 22:55

what's in your current folder?

Arrow
31 Mar, 2023, 22:57
Drake
31 Mar, 2023, 22:57

and what's in the functions and appwrite.json?

Arrow
31 Mar, 2023, 22:58

the functions folder has a dart project made previously with my local CLI and the json file references the function

Arrow
31 Mar, 2023, 22:59

For context, I have updated everything in the appwrite.json to match the server instance

Drake
31 Mar, 2023, 22:59

like what?

Arrow
31 Mar, 2023, 23:00

projectId

Arrow
31 Mar, 2023, 23:01

Am I supposed to get ✗ Error Project is not set. Please run appwrite init project to initialize the current directory with an Appwrite project. ? On this directory

Drake
31 Mar, 2023, 23:01

all seems good then...also check that the follow outputs the correct info

TypeScript
appwrite client --debug

then

TypeScript
appwrite projects list
Drake
31 Mar, 2023, 23:01

are you running the appwrite commands in the same folder as the appwrite.json?

Arrow
31 Mar, 2023, 23:01

Absolutely

Arrow
31 Mar, 2023, 23:02

both executes just fine

Drake
31 Mar, 2023, 23:02

and the values are correct?

Arrow
31 Mar, 2023, 23:04

Apart from the key value, it's empty, I assume it doesn't have something to do with it does it?

Drake
31 Mar, 2023, 23:05

and appwrite deploy function still doesn't work?

Arrow
31 Mar, 2023, 23:06

neither deploy nor init function,

Drake
31 Mar, 2023, 23:07

could you please DM me the full output?

Drake
1 Apr, 2023, 00:23

Circling back here...the CLI wasn't picking up the project properly because the appwrite.json was malformed (trailing comma)

Drake
1 Apr, 2023, 00:37

[SOLVED] ✗ Error No functions found in the current directory.

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