I am having an issue after upgrading appwrite, that it cant create an emailsession for some reason:
TypeScript
asyncfunctioncreateSession(email, password) {try {returnawait account.createEmailSession(email, password); } catch (e) {//console.log(e);return { error: e.message }; // `returns m.createEmailSession is not a function` when it prod }}
TL;DR
Issue: Error message "m.createEmailSession is not a function" occurring when using Svelte at build after upgrading appwrite.
Solution: Change `account.createEmailSession` to `account.createEmailPasswordSession` to resolve the issue.
Hexi
2 Jun, 2024, 09:38
After changing it to account.createEmailPasswordSession it seems to work?