Skip to content
Back

How to use dart workspaces to deploy a function

  • 0
  • 1
  • Self Hosted
  • Flutter
  • Functions
  • Cloud
12 Jul, 2026, 12:55

Hello,

I'm developing a Flutter application and I would like to leverage dart pub workspaces to deploy a function with a dart runtime as advertised here : https://appwrite.io/blog/post/announcing-dart-flutter-runtimes

The problem is that when pushing a function, only its folder is uploaded to build it and dart fails to retrieve the workspace of the parent pubspec and fails with the following error: Found a pubspec.yaml at /usr/local/build. But it has resolution workspace. But found no workspace root including it in parent directories.

Whats the good approach here? Thanks!

TL;DR
Developing a Flutter app using dart pub workspaces to deploy a function results in a workspace error. Dart is unable to retrieve the parent pubspec's workspace, causing an upload failure. The solution is to ensure that the correct parent directory is specified in the workspace configuration.
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