Skip to content
Back

node-appwrite 1.2.1 Type errors: refers to a value, but is being used as a type

  • 0
  • Databases
  • Self Hosted
WhiteWalker72
27 Mar, 2024, 09:53

Hi, i'm trying to update to node-appwrite v1.2.1 but when I try to build my application I get type errors within node-appwrite/index.d.ts. They are all more or less the same, for example:

TypeScript
node_modules/node-appwrite/index.d.ts:2699:34 - error TS2749: 'AuthenticatorType' refers to a value, but is being used as a type here. Did you mean 'typeof AuthenticatorType'?

2699     createMfaAuthenticator(type: AuthenticatorType): Promise<Models.MfaType>;

I'm using Node v20.9.0 and TypeScript 5.4.3. Is this an issue on my end or do I have to wait on new types to be published?

TL;DR
Developers are encountering type errors in node-appwrite/index.d.ts after updating to node-appwrite v1.2.1. The error 'AuthenticatorType' refers to a value, but is being used as a type. They are using Node v20.9.0 and TypeScript 5.4.3. This could be an issue with the types or a compatibility problem between versions. One approach could be waiting for new types to be published or checking for compatibility issues.
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