FS#79327 - [bitwarden-cli] package is broken and deprecated

Attached to Project: Community Packages
Opened by Bryan (nurfed) - Tuesday, 08 August 2023, 10:26 GMT
Last edited by Toolybird (Toolybird) - Tuesday, 08 August 2023, 20:59 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Running the bw command results in the following error:
/usr/lib/node_modules/@bitwarden/cli/node_modules/jsdom/lib/jsdom/living/nodes/HTMLInputElement-impl.js:583
this[filesSymbol] ||= FileList.createImpl(this._globalObject);
^^^

SyntaxError: Unexpected token '||='
at wrapSafe (internal/modules/cjs/loader.js:1029:16)
at Module._compile (internal/modules/cjs/loader.js:1078:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1143:10)
at Module.load (internal/modules/cjs/loader.js:979:32)
at Function.Module._load (internal/modules/cjs/loader.js:819:12)
at Module.require (internal/modules/cjs/loader.js:1003:19)
at require (internal/modules/cjs/helpers.js:107:18)
at Object.<anonymous> (/usr/lib/node_modules/@bitwarden/cli/node_modules/jsdom/lib/jsdom/living/generated/HTMLInputElement.js:1875:14)
at Module._compile (internal/modules/cjs/loader.js:1114:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1143:10)

Additionally, the bitwarden-cli (https://github.com/bitwarden/cli) has been deprecated in favor of https://contributing.bitwarden.com/getting-started/clients/cli/ (https://github.com/bitwarden/clients).


This task depends upon

Closed by  Toolybird (Toolybird)
Tuesday, 08 August 2023, 20:59 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#78387 
Comment by Jelle van der Waa (jelly) - Tuesday, 08 August 2023, 10:51 GMT
bitwarden-cli uses bitwarde-clients https://gitlab.archlinux.org/archlinux/packaging/packages/bitwarden-cli/-/blob/main/PKGBUILD#L14 so it's not deprecated.

Anyway, what node version are you running?
Comment by Bryan (nurfed) - Tuesday, 08 August 2023, 11:13 GMT
Sorry my bad, I was just about to update this post because I noticed that the pkgbuild was indeed using the correct repo.

I'm currently running node v14.21.3
Comment by Bryan (nurfed) - Tuesday, 08 August 2023, 11:19 GMT
Okay please ignore this post. I found the issue.
Comment by Jelle van der Waa (jelly) - Tuesday, 08 August 2023, 11:23 GMT
What do you mean? Does it work with a more up to date nodejs?
Comment by Bryan (nurfed) - Tuesday, 08 August 2023, 11:31 GMT
For some reason my system was using node v14.21.3 using nvm. When I changed it back to the system node version (v18.16.0), it started working again.
And I'm not sure how the node version got changed in the first place as I use bitwarden almost daily without any issues and I haven't used nvm in quite a while. Therefore I didn't think of dump issues like an old node version being in use.

The only reason why I didn't do more debugging at first was because I assumed the package was outdated (because the wrong upstream url is still linked at https://archlinux.org/packages/extra/x86_64/bitwarden-cli/ and I didn't check the PKGBUILD at first. My bad).

Loading...