this is function call im using and i am just passing in a normal blob that holds a size and type variable.
private _toBase64 = (file: Blob) =>
new Promise<string | ArrayBuffer | null>((resolve, reject) => {
const reader = new FileReader();
reader.readAsDataURL(file);
reader.onload = () => {
resolve(reader.result);
};
reader.onerror = error => {
console.log(error);
reject(error);
};
});
this is the error i recieve whenever this method is called
now the weird thing is a friend of mine has the same exact code on his computer and it works just fine