Skip to content
Back

TablesDB can't be used in Appwrite Functions ?

  • 0
  • Functions
SylvainJack
14 Mar, 2026, 17:20

I have written a function (DART) and it won't deploy. Here is what I get : 2026-03-14T17:09:41.459693680Z Compiling ... 2026-03-14T17:09:42.915619217Z ../build/lib/main.dart:14:3: Error: 'TablesDB' isn't a type. 2026-03-14T17:09:42.915658150Z TablesDB tablesDB = TablesDB(client); 2026-03-14T17:09:42.915662412Z ^^^^^^^^ 2026-03-14T17:09:42.915666286Z ../build/lib/main.dart:14:23: Error: Method not found: 'TablesDB'. 2026-03-14T17:09:42.915669114Z TablesDB tablesDB = TablesDB(client); 2026-03-14T17:09:42.915673757Z ^^^^^^^^ 2026-03-14T17:09:42.915712899Z Error: AOT compilation failed 2026-03-14T17:09:42.915717369Z Bad state: Generating AOT kernel dill failed!

Anyone has an idea why it won't work ?

TL;DR
The developer is encountering an issue where a function written in DART using TablesDB cannot deploy due to 'TablesDB' not being recognized as a type or method. This results in an AOT compilation failure. An error message indicates that 'TablesDB' is not found. The most likely reason for this issue is that TablesDB is not accessible in Appwrite Functions.
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