Back

Error on Resolving dependencies on Dart function

  • 0
  • Functions
  • Cloud
Mosh Ontong
24 Sep, 2023, 10:37
TypeScript
Building ...
Resolving dependencies...
Because starter_template depends on service_appwrite_repo from path which doesn't exist (could not find package service_appwrite_repo at "../../../packages/service/service_appwrite_repo"), version solving failed.

The compiling process on cloud function seems lacking. It does not find a package that is only found on my local machine.

TL;DR
There is an error resolving dependencies on a Dart function. The error is caused by a missing package that is only located on the local machine. One possible solution is to create a symlink using the 'shortcut' method. For Windows OS, you can find instructions here: [link]. Make sure to include the packages when uploading to Appwrite for it to work.
Drake
25 Sep, 2023, 05:15

How would some remote server pick up a package found only on your machine?

Mosh Ontong
25 Sep, 2023, 06:38

root project ---server_side ---packages ---client_side

This is the folders I created. server_side folder: it contains the appwrite cloud functions packages: it contains my own dart/flutter packages

Mosh Ontong
25 Sep, 2023, 06:39

client_side: it contains my flutter project

Mosh Ontong
25 Sep, 2023, 06:39

I am using dart function in appwrite cloud function. So then it can give me a less code to create a model

Mosh Ontong
25 Sep, 2023, 06:39

so it will be reusable to the server_side and client side

Drake
25 Sep, 2023, 21:42

the packages must be included when you upload to appwrite...otherwise, it won't work

Mosh Ontong
25 Sep, 2023, 22:35

I am not familiar with the symlink. Can you teach me how to create this thing on windows os?

Drake
25 Sep, 2023, 22:55

oye...im not sure...maybe you can use "shortcut" πŸ€·πŸΌβ€β™‚οΈ

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