Back
node-appwrite 1.2.1 Type errors: refers to a value, but is being used as a type
- 0
- Databases
- Self Hosted
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.Recommended threads
- Unable to init function via cli
Hello! I have created a new self hosted instance of appwrite 1.9.6 and have connected to that insatnce with the cli 27.2.0 that was released a few hours ago. Wh...
- IMPORTANT! SOC-2 Request Failing
Issue requesting SOC-2. If tried other/private browser as well as filling in optional fields.
- Appwrite-injected variables are not avai...
I am using rust-1.83 as a runtime and try to access APPWRITE_FUNCTION_API_ENDPOINT or APPWRITE_FUNCTION_API_KEY during runtime. Both are not set during my execu...