Back

TypeError: teams.updatePrefs is not a function

  • 0
  • Teams
  • Functions
Alain Iglesias
12 Jun, 2023, 23:39

Hey there! I manage to install a fresh 1.3.7 instance of Appwrite, but I'm getting same error that before.

TL;DR
The user is experiencing a TypeError: teams.updatePrefs is not a function error after installing a fresh 1.3.7 instance of Appwrite. They have followed the installation instructions provided by the responder. The responder suggests checking the version of node-appwrite installed, to which the user confirms that they have installed version 1.3.7. The responder then suggests changing the version to 9.0.0 in the function package.json to resolve the issue.
Binyamin
12 Jun, 2023, 23:40

What version of node-appwrite you've installed?

Alain Iglesias
12 Jun, 2023, 23:44

I installed per your instructions:

TypeScript
cd /root/

docker run -it --rm \
    --volume /var/run/docker.sock:/var/run/docker.sock \
    --volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \
    --entrypoint="install" \
    appwrite/appwrite:1.3.7

cd /root/appwrite/

docker compose exec appwrite migrate
Binyamin
12 Jun, 2023, 23:44

That's good!

Binyamin
12 Jun, 2023, 23:44

I mean in the function package.json

Alain Iglesias
12 Jun, 2023, 23:45
Binyamin
12 Jun, 2023, 23:45

Okay

Binyamin
12 Jun, 2023, 23:45

Try to change it to 9.0.0

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