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
- Unknown attribute type: varchar / text
Since the `string` type is deprecated I tried using `varchar` and `text` in some newer tables, but when running `appwrite pull tables && appwrite types ./src/li...
- User Filter/Sorting/Analytics
Currently the dashboard for users is very limited. I would like to have an option to sort by column and also to filter by column, to for example find users that...
- After a GET request is passed to functio...
Create execution in the console can normally retrieve the get parameters。WHy?