
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@example.com', // email
'', // password
'<NAME>' // name (optional)
);
It prompts me that account.create is not a function. I am running node v20.16.0
and node-appwrite@11.1.1
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
- Appwrite Function Not Updating After Dep...
I created a Node.js Appwrite function and deployed it successfully. When I accessed /ping, it returned pong as expected. Later, I cloned the function repo, edit...
- JSON Parse error: Unexpected EOF when ex...
Hi, I'm trying to test a piece of code and I can't figure out what I'm doing wrong. I've reduced the deployed main to just this ```javascript export default as...
- Automatically Assigning the user and tea...
Hey AppWriters! Day 2 for me 😅 I'm reading the docs https://appwrite.io/docs/products/auth/team-invites In order to understand how a document is added then ...
