Back

[SOLVED] Appwrite CLI throws TypeError After upgrading to `2.0.0`

  • 2
  • Tools
freppsa
12 Apr, 2023, 12:35

After upgrading Appwrite CLI to 2.0.0 all commands fails with the below error message. Installation of Appwrite CLI was done through npm.

TypeScript
"/usr/local/lib/node_modules/appwrite-cli/lib/commands/console.js:13
const console = new Command("console").description(commandDescriptions['console']).configureHelp({
                                                                                   ^
TypeError: (intermediate value).description(...).configureHelp is not a function
    at Object.<anonymous> (/usr/local/lib/node_modules/appwrite-cli/lib/commands/console.js:13:84)
    at Module._compile (node:internal/modules/cjs/loader:1275:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1329:10)
    at Module.load (node:internal/modules/cjs/loader:1133:32)
    at Module._load (node:internal/modules/cjs/loader:972:12)
    at Module.require (node:internal/modules/cjs/loader:1157:19)
    at require (node:internal/modules/helpers:119:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/appwrite-cli/index.js:18:21)
    at Module._compile (node:internal/modules/cjs/loader:1275:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1329:10)
Node.js v19.9.0"
TL;DR
After upgrading to version 2.0.0 of the Appwrite CLI, all commands fail with a TypeError. The error message indicates that the `description` method in the console.js file is not a function. This issue has been resolved in version 2.0.2. To fix this problem, upgrade to the latest version of the Appwrite CLI (2.0.2).
Drake
12 Apr, 2023, 13:29

Thanks for raising this!

Btw, it's best to use 3 back ticks with multi-line code. See https://www.markdownguide.org/extended-syntax/#syntax-highlighting

joeyouss
12 Apr, 2023, 13:58

Thanks for sharing, let me look into this

MatiasLGonzalez
12 Apr, 2023, 14:08

I'm too having this issue

Drake
12 Apr, 2023, 14:09

Looks like a bug with missing descriptions...we'll look into fixing it ASAP

freppsa
12 Apr, 2023, 14:33

Didn't know Discord supported multi-line, it's now been added. 🙂

freppsa
12 Apr, 2023, 14:33

Thanks for the update!

Drake
12 Apr, 2023, 15:14

we have a PR in: https://github.com/appwrite/sdk-generator/pull/642! Hoping to release soon

Joshi
12 Apr, 2023, 17:36

It looks like it has been merged. When is this going online?

Drake
12 Apr, 2023, 21:53

New version (2.0.2) has been released!

freppsa
13 Apr, 2023, 06:17

[Solved] Appwrite CLI throws TypeError After upgrading to 2.0.0

joeyouss
14 Apr, 2023, 16:55

[SOLVED] Appwrite CLI throws TypeError After upgrading to 2.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