import {Client, Account, Databases, Storage} from 'appwrite';
let webClient = new Client();
webClient.setEndpoint(endpoint)
.setProject(project)
let webAccount = new Account(webClient);
let session = await webAccount.createEmailPasswordSession(email, password);
π Expected behavior
I should succesfully create a session.
π Actual Behavior
ReferenceError: fetch is not defined
at Client.<anonymous> (file:///app/node_modules/appwrite/src/client.ts:691:26)
at Generator.next (<anonymous>)
at file:///app/node_modules/appwrite/node_modules/tslib/tslib.es6.js:76:71
at new Promise (<anonymous>)
at __awaiter (file:///app/node_modules/appwrite/node_modules/tslib/tslib.es6.js:72:12)
at Client.call (file:///app/node_modules/appwrite/dist/esm/sdk.js:624:16)
at Account.<anonymous> (file:///app/node_modules/appwrite/src/services/account.ts:871:34)
at Generator.next (<anonymous>)
at file:///app/node_modules/appwrite/node_modules/tslib/tslib.es6.js:76:71
at new Promise (<anonymous>)
π² Appwrite version
Version 0.10.x
π» Operating system
Linux
𧱠Your Environment
using node v22.8.0
appwrite library v16.0.0
π Have you spent some time to check if this issue has been raised before?
π Reproduction steps
π Expected behavior
I should succesfully create a session.
π Actual Behavior
π² Appwrite version
Version 0.10.x
π» Operating system
Linux
𧱠Your Environment
using node v22.8.0
appwrite library v16.0.0
π Have you spent some time to check if this issue has been raised before?
π’ Have you read the Code of Conduct?