Operating System: MacOS Appwrite Version: self-hosted 1.8.1 Appwrite CLI Version: 13.2.1
I want to split code up to share it between my functions. At the moment i have signup function and common code only.
I have paths:
- functions/common - my common code
- functions/signup - my function
I have created a relative soft link of my functions/common in functions/signup/src which i have named common.
I used command: ln -s "../../common" "./common" in the functions/signup/src folder
You can see structure of my project on the image.
It seems work but appwrite cli fails when i run my function using appwrite cli command: appwrite run function
Appwrite Cli throws exception:
/opt/homebrew/Cellar/appwrite/13.2.1/libexec/lib/node_modules/appwrite-cli/dist/cli.cjs:80636
throw new Ctor(message);
^
RangeError: path should be a `path.relative()`d string, but got "../common"
at throwError (/opt/homebrew/Cellar/appwrite/13.2.1/libexec/lib/node_modules/appwrite-cli/dist/cli.cjs:80636:13)
at checkPath (/opt/homebrew/Cellar/appwrite/13.2.1/libexec/lib/node_modules/appwrite-cli/dist/cli.cjs:80650:16)
at Ignore._test (/opt/homebrew/Cellar/appwrite/13.2.1/libexec/lib/node_modules/appwrite-cli/dist/cli.cjs:80688:9)
at Ignore.ignores (/opt/homebrew/Cellar/appwrite/13.2.1/libexec/lib/node_modules/appwrite-cli/dist/cli.cjs:80734:21)
at ignored (/opt/homebrew/Cellar/appwrite/13.2.1/libexec/lib/node_modules/appwrite-cli/dist/cli.cjs:140376:24)
at matchPatterns (/opt/homebrew/Cellar/appwrite/13.2.1/libexec/lib/node_modules/appwrite-cli/dist/cli.cjs:84084:22)
at FSWatcher._userIgnored (/opt/homebrew/Cellar/appwrite/13.2.1/libexec/lib/node_modules/appwrite-cli/dist/cli.cjs:84102:18)
at FSWatcher._isIgnored (/opt/homebrew/Cellar/appwrite/13.2.1/libexec/lib/node_modules/appwrite-cli/dist/cli.cjs:87211:21)
at FsEventsHandler._handleFsEventsSymlink (/opt/homebrew/Cellar/appwrite/13.2.1/libexec/lib/node_modules/appwrite-cli/dist/cli.cjs:86490:24)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
Emitted 'error' event on FSWatcher instance at:
at FSWatcher._handleError (/opt/homebrew/Cellar/appwrite/13.2.1/libexec/lib/node_modules/appwrite-cli/dist/cli.cjs:87100:16)
at FsEventsHandler._handleFsEventsSymlink (/opt/homebrew/Cellar/appwrite/13.2.1/libexec/lib/node_modules/appwrite-cli/dist/cli.cjs:86504:24)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
Node.js v25.5.0
Recommended threads
- Need help to create a wrapper which let ...
I’m looking for help setting up Appwrite properly on a VPS so I can build a self-hosting wrapper around it. The goal is to provide a Linux executable that allow...
- Apple OAuth2 "Registration Not Complete"...
I'm getting a "Registration Not Complete" error when implementing Apple Sign In OAuth2 on self-hosted Appwrite. Environment: Self-hosted Appwrite (latest), iOS...
- Migration Failed from 1.7.4 → 1.8.1: "Co...
Hey everyone! 👋 I'm trying to upgrade my self-hosted Appwrite from **1.7.4 to 1.8.1** and the migration is consistently failing **Environment:** - Current ve...