When running the account.create function in node js from the documentation(https://appwrite.io/docs/references/cloud/server-nodejs/account)
const result = await account.create(
'<USER_ID>', // userId
'[email protected]', // email
'', // password
'<NAME>' // name (optional)
);
It prompts me that account.create is not a function. I am running node v20.16.0
and [email protected]
How can i fix this? I also keep having the same issue with other functions that they are not recognized even though they are copy pasted from the docs
Thanks for reading this, hope someone might have a solution ๐
Make sure to keep your package versions up to date.
You should be using version 14.1.0
Thanks that seems to solve it
[SOLVED] account.create is not a function
I was using this guide to get started, this guide says to install 11.1.1, perhaps you could update it? https://appwrite.io/docs/quick-starts/node
it seems a bit outdated
Recommended threads
- Getting payload is too large response fr...
I'm encountering a 412 "Payload Too Large" error while trying to upload a 100MB file via Appwrite function to an external storage service api. Could you suggest...
- I do SSR auth. What's the best way to se...
I am currently handling authentication entirely server-side via an `/api/auth` endpoint, so I don't have any Appwrite client instances running client-side. Ho...
- Network Error on upload
am trying to upload files but am gettin ` Error uploading image [AppwriteException: Network request failed]` ```ts export const uploadDriver = async (file: Ima...