"Failed to construct 'Blob': The provided value cannot be converted to a sequence" when downloading file
The first parameter should be sequence.
Thus, this will not work:
let blob = new Blob(data, {
type: "application/pdf"
});
But this will:
let blob = new Blob([data], {
type: "application/pdf"
});