0👍
✅
In the end. The problem wasn’t the code from the .vue file but rather, the exporting of the checkPassword function from another file.
I wrote the helper function as:
async function checkPassword(username, password){
/*CODE*/
}
export default { checkPassword }
And what solved it was putting and export before the function itself, as follows:
export async function checkPassword(username, password){
/*CODE*/
}
export default { checkPassword }
Source:stackexchange.com