HexiOriginal post
Rank 3: Container
I am having an issue after upgrading appwrite, that it cant create an emailsession for some reason:
JavaScript
async function createSession(email, password) { try { return await account.createEmailSession(email, password); } catch (e) { //console.log(e); return { error: e.message }; // `returns m.createEmailSession is not a function` when it prod }}Summary
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.