Back

node-appwrite does not have updateLabels version 11.1.0

  • 0
  • Functions
armanhadi
11 Dec, 2023, 06:48

Dear appwrite ,

I wanted to update user label in the cloud but the node version does not have it , I tested the dart version it has updateLabels

TL;DR
The user is experiencing an issue where the node-appwrite library does not have the updateLabels method in version 11.1.0. They have tried deleting node_modules, running npm install, and restarting their IDE, but the issue persists. The user has provided their package.json file for reference. Solution: It is suggested to check the source code of the script that is failing and ensure that the correct version of the library (11.1.0) is being used. They can also try using the Dart version of appwrite, as it does have the updateLabels method.
Meldiron
11 Dec, 2023, 06:57

Hi there πŸ‘‹ Hmm that should not be the case, I see updateLabels method in Users service. Can you please share source code of script that is failing? Also please share package.json if possible, so we can check version (11.1.0 is correct)

armanhadi
11 Dec, 2023, 07:08

This is my package.json

TypeScript
{
  "name": "starter-template",
  "version": "1.0.0",
  "description": "",
  "main": "src/main.js",
  "type": "module",
  "scripts": {
    "format": "prettier --write ."
  },
  "devDependencies": {
    "node-appwrite": "^11.1.0",
    "prettier": "^3.0.0"
  }
}
armanhadi
11 Dec, 2023, 07:09
Drake
11 Dec, 2023, 14:23

Maybe you can try deleting your node_modules, running npm install and then restarting your IDE?

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